public class PerceptronLexicalAnalyzer extends AbstractLexicalAnalyzer
enableRuleBasedSegment, neRecognizer, posTagger, segmenter, typeTableconfig, customDictionary| Constructor and Description |
|---|
PerceptronLexicalAnalyzer()
加载配置文件指定的模型构造词法分析器
|
PerceptronLexicalAnalyzer(LinearModel CWSModel) |
PerceptronLexicalAnalyzer(LinearModel cwsModel,
LinearModel posModel,
LinearModel nerModel) |
PerceptronLexicalAnalyzer(PerceptronSegmenter segmenter) |
PerceptronLexicalAnalyzer(PerceptronSegmenter segmenter,
PerceptronPOSTagger posTagger) |
PerceptronLexicalAnalyzer(PerceptronSegmenter segmenter,
PerceptronPOSTagger posTagger,
PerceptronNERecognizer neRecognizer) |
PerceptronLexicalAnalyzer(String cwsModelFile) |
PerceptronLexicalAnalyzer(String cwsModelFile,
String posModelFile) |
PerceptronLexicalAnalyzer(String cwsModelFile,
String posModelFile,
String nerModelFile) |
| Modifier and Type | Method and Description |
|---|---|
PerceptronNERecognizer |
getPerceptionNERecognizer()
获取命名实体识别器
|
PerceptronPOSTagger |
getPerceptronPOSTagger()
获取词性标注器
|
PerceptronSegmenter |
getPerceptronSegmenter()
获取分词器
|
boolean |
learn(Sentence sentence)
在线学习
|
boolean |
learn(String segmentedTaggedSentence)
在线学习
|
String[] |
namedEntityRecognize(String[] wordArray,
String[] posArray)
命名实体识别
|
String[] |
partOfSpeechTag(List<String> wordList)
词性标注
|
void |
segment(String text,
List<String> output)
中文分词
|
acceptCustomWord, analyze, combineWithCustomDictionary, enableRuleBasedSegment, getNERTagSet, recognize, roughSegSentence, segment, segment, segment, segment, segmentAfterRule, segSentence, tag, tagguessAttribute, toVertexListatomSegment, combineByCustomDictionary, combineByCustomDictionary, combineByCustomDictionary, combineByCustomDictionary, convert, enableAllNamedEntityRecognize, enableCustomDictionary, enableCustomDictionary, enableCustomDictionaryForcing, enableIndexMode, enableIndexMode, enableJapaneseNameRecognize, enableMultithreading, enableMultithreading, enableNameRecognize, enableNumberQuantifierRecognize, enableOffset, enableOrganizationRecognize, enablePartOfSpeechTagging, enablePlaceRecognize, enableTranslatedNameRecognize, mergeNumberQuantifier, quickAtomSegment, seg, seg, seg2sentence, seg2sentence, simpleAtomSegmentpublic PerceptronLexicalAnalyzer(PerceptronSegmenter segmenter)
public PerceptronLexicalAnalyzer(PerceptronSegmenter segmenter, PerceptronPOSTagger posTagger)
public PerceptronLexicalAnalyzer(PerceptronSegmenter segmenter, PerceptronPOSTagger posTagger, PerceptronNERecognizer neRecognizer)
public PerceptronLexicalAnalyzer(LinearModel cwsModel, LinearModel posModel, LinearModel nerModel)
public PerceptronLexicalAnalyzer(String cwsModelFile, String posModelFile, String nerModelFile) throws IOException
IOExceptionpublic PerceptronLexicalAnalyzer(String cwsModelFile, String posModelFile) throws IOException
IOExceptionpublic PerceptronLexicalAnalyzer(String cwsModelFile) throws IOException
IOExceptionpublic PerceptronLexicalAnalyzer(LinearModel CWSModel)
public PerceptronLexicalAnalyzer()
throws IOException
IOExceptionpublic String[] partOfSpeechTag(List<String> wordList)
wordList - public String[] namedEntityRecognize(String[] wordArray, String[] posArray)
wordArray - posArray - public boolean learn(String segmentedTaggedSentence)
segmentedTaggedSentence - 已分词、标好词性和命名实体的人民日报2014格式的句子public boolean learn(Sentence sentence)
sentence - 已分词、标好词性和命名实体的人民日报2014格式的句子public PerceptronSegmenter getPerceptronSegmenter()
public PerceptronPOSTagger getPerceptronPOSTagger()
public PerceptronNERecognizer getPerceptionNERecognizer()
Copyright © 2014–2021 码农场. All rights reserved.