public interface FeatureType
Interface of feature type which is actually a factory generating certain type of features
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| 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 seq,
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 dataset)
Trains the feature types with the labeled training dataset
|
boolean startScanFeaturesAt(DataSequence seq, int startPos, int endPos)
seq - the sequencestartPos - the start position of the segmentendPos - the end position of the segmentboolean hasNext()
Feature next()
boolean needTraining()
boolean train(Dataset dataset)
dataset - the dataset for trainingboolean saveTrainingResult()
boolean readTrainingResult()
int getTypeID()
void setTypeID(int typeID)
typeID - the type idboolean supportSegment()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.