public class CRFNERecognizer extends CRFTagger implements NERecognizer
| 构造器和说明 |
|---|
CRFNERecognizer() |
CRFNERecognizer(String modelPath) |
CRFNERecognizer(String modelPath,
String[] customNERTags) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addDefaultNERLabels() |
void |
addNERLabels(String newNerTag) |
protected void |
convertCorpus(Sentence sentence,
BufferedWriter bw) |
protected String |
getDefaultFeatureTemplate() |
NERTagSet |
getNERTagSet() |
String[] |
recognize(String[] wordArray,
String[] posArray)
命名实体识别
|
convertCorpus, dumpTemplate, getTemplate, train, train, trainpublic CRFNERecognizer()
throws IOException
IOExceptionpublic CRFNERecognizer(String modelPath) throws IOException
IOExceptionpublic CRFNERecognizer(String modelPath, String[] customNERTags) throws IOException
IOExceptionprotected void addDefaultNERLabels()
public void addNERLabels(String newNerTag)
protected void convertCorpus(Sentence sentence, BufferedWriter bw) throws IOException
convertCorpus 在类中 CRFTaggerIOExceptionpublic String[] recognize(String[] wordArray, String[] posArray)
NERecognizerrecognize 在接口中 NERecognizerwordArray - 单词posArray - 词性public NERTagSet getNERTagSet()
getNERTagSet 在接口中 NERecognizerprotected String getDefaultFeatureTemplate()
getDefaultFeatureTemplate 在类中 CRFTaggerCopyright © 2014–2019 码农场. All rights reserved.