hanlp.suggest: text suggester.

Description Usage Format Details Methods Author(s) Examples

Description

a R6 class of text suggester.

Usage

1

Format

R6Class object.

Details

A function of text suggest .

Methods

$Suggester

a java object.

$addSentence(x)

add sentences intoSuggester,x is a character vector.

$suggest(word="",size=5L)

suggest size sentences for a word

Author(s)

https://github.com/qxde01/RHanLP

Examples

1
2
3
4
5
6
## Not run: 
sug<-hanlp.suggest$new()
sug$addSentence(c('hello world','My R world'))
sug$suggest(word="world",size=2L)

## End(Not run)

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