Description Usage Arguments Value
A wrapper to ansj chinese words segmentation package. This function support all segmentation methods of ansj: NlpAnalysis, ToAnalysis, BaseAnalysis, DicAnalysis, IndexAnalysis, FastIndexAnalysis. More details about these methods refers to https://github.com/NLPchina/ansj_seg
1 2 3 |
str |
A character of chinese sentence to be segmented. |
method |
A chrarcter to select one segment method from:
|
nature |
logical. Whether to tag the POS. Default = FALSE. |
stopwords |
logical. Whether to remove stopwords from the result.
Default = FALSE. Use |
naturesInclude |
Character vector. The natures to be take back from the result. Default = NULL. |
naturesRemove |
Character vector. The natures to be removed from the result. Default = NULL.Note that if naturesInclude and naturesRemove are both not null, naturesRemove will be ignored. |
nosymbol |
logical. Whether to keep symbols in the result. Default = TRUE. |
returnType |
A character from |
A character or character vector depends on the parameter returnType.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.