| 构造器和说明 |
|---|
CRFPOSTagger() |
CRFPOSTagger(String modelPath) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
convertCorpus(Sentence sentence,
BufferedWriter bw) |
protected String |
getDefaultFeatureTemplate() |
String[] |
tag(List<String> wordList)
词性标注
|
String[] |
tag(String... words)
词性标注
|
void |
train(String trainCorpusPath,
String modelPath) |
convertCorpus, dumpTemplate, getTemplate, train, trainpublic CRFPOSTagger()
throws IOException
IOExceptionpublic CRFPOSTagger(String modelPath) throws IOException
IOExceptionpublic void train(String trainCorpusPath, String modelPath) throws IOException
train 在类中 CRFTaggerIOExceptionprotected void convertCorpus(Sentence sentence, BufferedWriter bw) throws IOException
convertCorpus 在类中 CRFTaggerIOExceptionprotected String getDefaultFeatureTemplate()
getDefaultFeatureTemplate 在类中 CRFTaggerCopyright © 2014–2019 码农场. All rights reserved.