setAnalyzer: Set the default analyzer.
Description
The default analyzer is 'hmm', which is implemented by native R codes and still in development.
You can use 'jiebaR' instead. Or 'coreNLP' to invoke Stanford CoreNLP. Or choose 'fmm' to try the forward maximum matching algorithm.
Usage
setAnalyzer(analyzer = c("hmm", "jiebaR", "fmm", "coreNLP"),
coreNLPdir = "")
Arguments
analyzer
One of 'jiebaR', 'hmm', 'fmm' and 'coreNLP'.
coreNLPdir,
Set the coreNLP file path, only use for 'coreNLP'.
Examples
Run this code# NOT RUN {
setAnalyzer("hmm")
# }
Run the code above in your browser using DataLab