public class POSTrainer extends PerceptronTrainer
PerceptronTrainer.Result| Constructor and Description |
|---|
POSTrainer() |
| Modifier and Type | Method and Description |
|---|---|
protected Instance |
createInstance(Sentence sentence,
FeatureMap featureMap) |
protected TagSet |
createTagSet()
创建标注集
|
PerceptronTrainer.Result |
train(String trainingFile,
String developFile,
String modelFile) |
loadTrainInstances, train, trainevaluate, evaluate, normalizeprotected TagSet createTagSet()
PerceptronTrainercreateTagSet in class PerceptronTrainerprotected Instance createInstance(Sentence sentence, FeatureMap featureMap)
createInstance in class InstanceConsumerpublic PerceptronTrainer.Result train(String trainingFile, String developFile, String modelFile) throws IOException
train in class PerceptronTrainerIOExceptionCopyright © 2014–2021 码农场. All rights reserved.