public class HMMNERecognizer extends HMMTrainer implements NERecognizer
| Constructor and Description |
|---|
HMMNERecognizer() |
HMMNERecognizer(HiddenMarkovModel model) |
| Modifier and Type | Method and Description |
|---|---|
protected List<String[]> |
convertToSequence(Sentence sentence) |
NERTagSet |
getNERTagSet() |
protected TagSet |
getTagSet() |
String[] |
recognize(String[] wordArray,
String[] posArray)
命名实体识别
|
trainpublic HMMNERecognizer(HiddenMarkovModel model)
public HMMNERecognizer()
protected List<String[]> convertToSequence(Sentence sentence)
convertToSequence in class HMMTrainerprotected TagSet getTagSet()
getTagSet in class HMMTrainerpublic String[] recognize(String[] wordArray, String[] posArray)
NERecognizerrecognize in interface NERecognizerwordArray - 单词posArray - 词性public NERTagSet getNERTagSet()
getNERTagSet in interface NERecognizerCopyright © 2014–2021 码农场. All rights reserved.