new_user_word: Add user word

Description Usage Arguments Examples

View source: R/worker_func.R

Description

Add user word

Usage

1
new_user_word(worker, words, tags = rep("n", length(words)))

Arguments

worker

a jieba worker

words

the new words

tags

the new words tags, default "n"

Examples

1
2
3
cc = worker()
new_user_word(cc, "test")
new_user_word(cc, "do", "v")

Example output

Loading required package: jiebaRD
[1] TRUE
[1] TRUE

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