| Constructor and Description |
|---|
CRFSegmenter() |
CRFSegmenter(String modelPath) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
convertCorpus(Sentence sentence,
BufferedWriter bw) |
protected String |
getDefaultFeatureTemplate() |
List<String> |
segment(String text)
中文分词
|
void |
segment(String text,
String normalized,
List<String> wordList) |
convertCorpus, dumpTemplate, getTemplate, train, train, trainpublic CRFSegmenter()
throws IOException
IOExceptionpublic CRFSegmenter(String modelPath) throws IOException
IOExceptionprotected void convertCorpus(Sentence sentence, BufferedWriter bw) throws IOException
convertCorpus in class CRFTaggerIOExceptionprotected String getDefaultFeatureTemplate()
getDefaultFeatureTemplate in class CRFTaggerCopyright © 2014–2021 码农场. All rights reserved.