| Constructor and Description |
|---|
CRFPOSTagger() |
CRFPOSTagger(String modelPath) |
| Modifier and Type | Method and Description |
|---|---|
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 in class CRFTaggerIOExceptionprotected void convertCorpus(Sentence sentence, BufferedWriter bw) throws IOException
convertCorpus in class CRFTaggerIOExceptionprotected String getDefaultFeatureTemplate()
getDefaultFeatureTemplate in class CRFTaggerCopyright © 2014–2021 码农场. All rights reserved.