Description Usage Arguments Value Author(s) Examples
A function segment Chinese sentence into words.
1 2 3 4 5 |
strwords |
A Chinese sentence in UTF-8 or the path of a text file. |
analyzer |
A JAVA object of analyzer. |
nature |
Whether to recognise the nature of the words. |
nosymbol |
Whether to keep symbols in the sentence. |
returnType |
Default is a string vector but we also
can choose 'tm' to output a single string separated by
space so that it can be used by |
isfast |
Whether to run the fast analyzer. |
outfile |
The path of output if strwords is a file. |
blocklines |
The (maximal) number of lines to read at one time when strwords is a file. |
a vector of words (list if input is vecter) which have been segmented or the path of output file.
Jian Li <rweibo@sina.com>
1 2 3 4 | ## Not run:
segmentCN("hello world!")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.