public abstract class DictionaryBasedSegment extends Segment
config, customDictionary| Constructor and Description |
|---|
DictionaryBasedSegment() |
| Modifier and Type | Method and Description |
|---|---|
Segment |
enableCustomDictionary(boolean enable)
是否启用用户词典
|
Segment |
enablePartOfSpeechTagging(boolean enable)
开启数词和英文识别(与标准意义上的词性标注不同,只是借用这个配置方法,不是真的开启了词性标注。
一般用词典分词的用户不太可能是NLP专业人士,对词性准确率要求不高,所以干脆不为词典分词实现词性标注。)
|
protected void |
posTag(char[] charArray,
int[] wordNet,
Nature[] natureArray)
词性标注
|
atomSegment, combineByCustomDictionary, combineByCustomDictionary, combineByCustomDictionary, combineByCustomDictionary, convert, enableAllNamedEntityRecognize, enableCustomDictionary, enableCustomDictionaryForcing, enableIndexMode, enableIndexMode, enableJapaneseNameRecognize, enableMultithreading, enableMultithreading, enableNameRecognize, enableNumberQuantifierRecognize, enableOffset, enableOrganizationRecognize, enablePlaceRecognize, enableTranslatedNameRecognize, mergeNumberQuantifier, quickAtomSegment, seg, seg, seg2sentence, seg2sentence, segSentence, simpleAtomSegmentpublic Segment enablePartOfSpeechTagging(boolean enable)
enablePartOfSpeechTagging in class Segmentenable - protected void posTag(char[] charArray,
int[] wordNet,
Nature[] natureArray)
charArray - 字符数组wordNet - 词语长度natureArray - 输出词性public Segment enableCustomDictionary(boolean enable)
SegmentenableCustomDictionary in class SegmentCopyright © 2014–2021 码农场. All rights reserved.