public abstract class AbstractStep extends Object implements PipelineStep
| Modifier and Type | Field and Description |
|---|---|
protected FeatureSet |
featureSet |
protected Map<String,LearningProblem> |
learningProblems |
protected Map<String,Model> |
models |
static Integer |
NEGATIVE |
static Integer |
POSITIVE |
| Constructor and Description |
|---|
AbstractStep(FeatureSet fs) |
| Modifier and Type | Method and Description |
|---|---|
void |
done() |
abstract void |
extractInstances(Sentence s) |
protected abstract String |
getModelFileName() |
abstract void |
parse(Sentence s) |
void |
prepareLearning(String filePrefix) |
void |
readModels(ZipFile zipFile) |
void |
train() |
void |
writeModels(ZipOutputStream zos) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepareLearningpublic static final Integer POSITIVE
public static final Integer NEGATIVE
protected FeatureSet featureSet
protected Map<String,LearningProblem> learningProblems
public AbstractStep(FeatureSet fs)
public void prepareLearning(String filePrefix)
public abstract void extractInstances(Sentence s)
extractInstances in interface PipelineSteppublic abstract void parse(Sentence s)
parse in interface PipelineSteppublic void done()
done in interface PipelineSteppublic void train()
train in interface PipelineStepprotected abstract String getModelFileName()
public void readModels(ZipFile zipFile) throws IOException, ClassNotFoundException
readModels in interface PipelineStepIOExceptionClassNotFoundExceptionpublic void writeModels(ZipOutputStream zos) throws IOException
writeModels in interface PipelineStepIOExceptionCopyright © 2016. All rights reserved.