public class PerceptionNERecognizer extends PerceptronTagger implements NERecognizer
model| 构造器和说明 |
|---|
PerceptionNERecognizer()
加载配置文件指定的模型
|
PerceptionNERecognizer(LinearModel nerModel) |
PerceptionNERecognizer(String nerModelPath) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Instance |
createInstance(Sentence sentence,
FeatureMap featureMap) |
NERTagSet |
getNERTagSet() |
boolean |
learn(String segmentedTaggedNERSentence)
在线学习
|
String[] |
recognize(String[] wordArray,
String[] posArray) |
evaluate, getModel, learn, learnevaluate, evaluate, normalizepublic PerceptionNERecognizer(LinearModel nerModel)
public PerceptionNERecognizer(String nerModelPath) throws IOException
IOExceptionpublic PerceptionNERecognizer()
throws IOException
IOExceptionpublic String[] recognize(String[] wordArray, String[] posArray)
recognize 在接口中 NERecognizerpublic NERTagSet getNERTagSet()
getNERTagSet 在接口中 NERecognizerpublic boolean learn(String segmentedTaggedNERSentence)
segmentedTaggedNERSentence - 人民日报2014格式的句子protected Instance createInstance(Sentence sentence, FeatureMap featureMap)
createInstance 在类中 InstanceConsumerCopyright © 2014–2018 码农场. All rights reserved.