public class CRFNERecognizer extends CRFTagger implements NERecognizer
| 构造器和说明 |
|---|
CRFNERecognizer() |
CRFNERecognizer(String modelPath) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addDefaultNERLabels() |
protected void |
convertCorpus(Sentence sentence,
BufferedWriter bw) |
protected String |
getDefaultFeatureTemplate() |
NERTagSet |
getNERTagSet() |
String[] |
recognize(String[] wordArray,
String[] posArray) |
convertCorpus, createTagger, dumpTemplate, getTemplate, train, train, trainpublic CRFNERecognizer()
throws IOException
IOExceptionpublic CRFNERecognizer(String modelPath) throws IOException
IOExceptionprotected void addDefaultNERLabels()
protected void convertCorpus(Sentence sentence, BufferedWriter bw) throws IOException
convertCorpus 在类中 CRFTaggerIOExceptionpublic String[] recognize(String[] wordArray, String[] posArray)
recognize 在接口中 NERecognizerpublic NERTagSet getNERTagSet()
getNERTagSet 在接口中 NERecognizerprotected String getDefaultFeatureTemplate()
getDefaultFeatureTemplate 在类中 CRFTaggerCopyright © 2014–2018 码农场. All rights reserved.