public abstract class InstanceConsumer extends Object
| Constructor and Description |
|---|
InstanceConsumer() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Instance |
createInstance(Sentence sentence,
FeatureMap featureMap) |
protected double[] |
evaluate(String developFile,
LinearModel model) |
protected double[] |
evaluate(String developFile,
String modelFile) |
protected String |
normalize(String text) |
protected abstract Instance createInstance(Sentence sentence, FeatureMap featureMap)
protected double[] evaluate(String developFile, String modelFile) throws IOException
IOExceptionprotected double[] evaluate(String developFile, LinearModel model) throws IOException
IOExceptionCopyright © 2014–2021 码农场. All rights reserved.