public abstract class AbstractFeatureType extends Object implements FeatureType
Abstract class for feature type
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor and Description |
|---|
AbstractFeatureType(boolean needTraining) |
| Modifier and Type | Method and Description |
|---|---|
int |
getTypeID()
Gets the unique id of the current feature type.
|
boolean |
needTraining()
Tests if the current feature type needs training
|
boolean |
readTrainingResult()
Reads the training result in testing mode
|
boolean |
saveTrainingResult()
Saves the training results in training mode
|
void |
setTypeID(int typeID)
Sets the id of the current feature type
|
boolean |
startScanFeaturesAt(DataSequence data,
int pos) |
boolean |
supportSegment()
Tests if the feature type supports generating features for segments.
|
boolean |
train(Dataset data)
Trains the feature types with the labeled training dataset
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasNext, next, startScanFeaturesAtprotected String idPrefix
public boolean needTraining()
FeatureTypeneedTraining in interface FeatureTypepublic boolean train(Dataset data)
FeatureTypetrain in interface FeatureTypedata - the dataset for trainingpublic boolean saveTrainingResult()
FeatureTypesaveTrainingResult in interface FeatureTypepublic boolean readTrainingResult()
FeatureTypereadTrainingResult in interface FeatureTypepublic int getTypeID()
FeatureTypegetTypeID in interface FeatureTypepublic void setTypeID(int typeID)
FeatureTypesetTypeID in interface FeatureTypetypeID - the type idpublic boolean startScanFeaturesAt(DataSequence data, int pos)
public boolean supportSegment()
FeatureTypesupportSegment in interface FeatureTypeCopyright © 2018 JULIE Lab, Germany. All rights reserved.