Description Usage Arguments Value Author(s) Examples
A function segment Chinese sentence into words.
1 | hanlp.segment(text, nature = TRUE, mode = "standard")
|
text |
A Chinese sentence in UTF-8 . |
nature |
Whether to recognise the nature of the words. |
mode |
segment mode,default |
a vector of words which have been segmented.
https://github.com/qxde01/RHanLP
1 2 3 4 | ## Not run:
hanlp.segment("hello world!")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.