hanlp.updateWord: Add,remove,get a word.

Description Usage Arguments Value Author(s) Examples

Description

Dynamically updated dictionary

Usage

1
hanlp.updateWord(x, mode = "insert")

Arguments

x

a word like c('word') or c('words','nz',freq) .

mode

insert ,get or remove a word, dynamically updated dictionary.

Value

TRUE, FALSE or a character.

Author(s)

https://github.com/qxde01/RHanLP

Examples

1
2
3
4
5
6
7
## Not run: 
hanlp.updateWord('newword')
hanlp.updateWord(c('newword','nz',1000))
hanlp.updateWord(x=c('newword'),mode='get')
hanlp.updateWord(x=c('newword'),mode='remove')

## End(Not run)

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