hanlp.segment: Sengment a sentence.

Description Usage Arguments Value Author(s) Examples

Description

A function segment Chinese sentence into words.

Usage

1
hanlp.segment(text, nature = TRUE, mode = "standard")

Arguments

text

A Chinese sentence in UTF-8 .

nature

Whether to recognise the nature of the words.

mode

segment mode,default standard mode,other mode contains fast,NER,index,TCS,CRF,NShort,HMM

Value

a vector of words which have been segmented.

Author(s)

https://github.com/qxde01/RHanLP

Examples

1
2
3
4
## Not run: 
hanlp.segment("hello world!")

## End(Not run)

qxde01/RHanLP documentation built on May 13, 2019, 8:39 a.m.