tagging: Speech Tagging

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/tagger.R

Description

The function uses Speech Tagging worker to cut word and tags each word after segmentation using labels compatible with ictclas. dict hmm and user should be provided when initializing jiebaR worker.

Usage

1
tagging(code, jiebar)

Arguments

code

a Chinese sentence or the path of a text file

jiebar

jiebaR Worker

Details

There is a symbol <= for this function.

Author(s)

Qin Wenfeng

References

The ictclas speech tag : http://t.cn/RAEj7e1

See Also

<=.tagger worker

Examples

1
2
3
4
5
6
7
8
## Not run: 
words = "hello world"

### Speech Tagging 
tagger = worker("tag")
tagger <= words

## End(Not run)

Example output

Loading required package: jiebaRD
    eng     eng 
"hello" "world" 

jiebaR documentation built on Dec. 16, 2019, 1:19 a.m.