public abstract class AbstractFeatureTypeWrapper extends Object implements FeatureType
Abstract class for feature type wrapper
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected FeatureType |
ftype |
| Constructor and Description |
|---|
AbstractFeatureTypeWrapper(FeatureType ftype) |
| Modifier and Type | Method and Description |
|---|---|
int |
getTypeID()
Gets the unique id of the current feature type.
|
boolean |
hasNext()
Tests if next feature exists
|
boolean |
needTraining()
Tests if the current feature type needs training
|
Feature |
next()
Gets the next feature
|
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 startPos,
int endPos)
Starts scanning features of the given segment of a sequence
|
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
|
protected FeatureType ftype
public AbstractFeatureTypeWrapper(FeatureType ftype)
public boolean startScanFeaturesAt(DataSequence data, int startPos, int endPos)
FeatureTypestartScanFeaturesAt in interface FeatureTypedata - the sequencestartPos - the start position of the segmentendPos - the end position of the segmentpublic boolean hasNext()
FeatureTypehasNext in interface FeatureTypepublic Feature next()
FeatureTypenext in interface FeatureTypepublic boolean needTraining()
FeatureTypeneedTraining in interface FeatureTypepublic boolean train(Dataset data)
FeatureTypetrain in interface FeatureTypedata - the dataset for trainingpublic boolean readTrainingResult()
FeatureTypereadTrainingResult in interface FeatureTypepublic boolean saveTrainingResult()
FeatureTypesaveTrainingResult in interface FeatureTypepublic int getTypeID()
FeatureTypegetTypeID in interface FeatureTypepublic void setTypeID(int typeID)
FeatureTypesetTypeID in interface FeatureTypetypeID - the type idpublic boolean supportSegment()
FeatureTypesupportSegment in interface FeatureTypeCopyright © 2018 JULIE Lab, Germany. All rights reserved.