public class CRFNERecognizer extends CRFTagger implements NERecognizer
| Constructor and Description |
|---|
CRFNERecognizer() |
CRFNERecognizer(String modelPath) |
| Modifier and Type | Method and Description |
|---|---|
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 in class CRFTaggerIOExceptionpublic String[] recognize(String[] wordArray, String[] posArray)
recognize in interface NERecognizerpublic NERTagSet getNERTagSet()
getNERTagSet in interface NERecognizerprotected String getDefaultFeatureTemplate()
getDefaultFeatureTemplate in class CRFTaggerCopyright © 2014–2018 码农场. All rights reserved.