public class NLPTokenizer extends Object
| Modifier and Type | Field and Description |
|---|---|
static AbstractLexicalAnalyzer |
ANALYZER
预置分词器
|
| Constructor and Description |
|---|
NLPTokenizer() |
| Modifier and Type | Method and Description |
|---|---|
static Sentence |
analyze(String sentence)
词法分析
|
static List<List<Term>> |
seg2sentence(String text)
切分为句子形式
|
static List<List<Term>> |
seg2sentence(String text,
boolean shortest)
分词断句 输出句子形式
|
static List<Term> |
segment(char[] text)
分词
|
static List<Term> |
segment(String text) |
public static AbstractLexicalAnalyzer ANALYZER
Copyright © 2014–2021 码农场. All rights reserved.