public interface FeatureGenerator
Interface of Feature Generator
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Method and Description |
|---|---|
boolean |
addFeatureType(FeatureType featureType)
Adds wanted feature type to the feature generator
|
String |
getFeatureName(int featureIndex) |
int |
getFeatureNum() |
FeatureType |
getFeatureTYpe(int index)
Gets the index-th feature type
|
int |
getFeatureTypeNum()
Gets the number of wanted feature types.
|
boolean |
hasNext()
Tests if next feature exists
|
boolean |
loadFeatureData()
This method will be called in testing mode.
|
Feature |
next()
Gets the next feature.
|
boolean |
readFeatures(String featureFile)
Reads feature list from a text file
|
boolean |
saveFeatures(String featureFile)
Save features to a text file
|
void |
startScanFeaturesAt(DataSequence data,
int startPos,
int endPos)
Starts scanning features for the specified segment
|
boolean |
supportSegment()
Tests if the feature generatore supports the segment labeling problem
|
boolean |
train(Dataset data)
This method will be called in training mode.
|
boolean addFeatureType(FeatureType featureType)
featureType - the wanted feature typeint getFeatureTypeNum()
FeatureType getFeatureTYpe(int index)
index - the index of the feature typeboolean train(Dataset data)
data - the dataset for trainingboolean loadFeatureData()
boolean readFeatures(String featureFile)
featureFile - the name of the file containing the feature informationboolean saveFeatures(String featureFile)
featureFile - the name of the file all features will be save tovoid startScanFeaturesAt(DataSequence data, int startPos, int endPos)
data - the sequence datastartPos - the start position of the segmentendPos - the end position of the segmentboolean hasNext()
Feature next()
int getFeatureNum()
String getFeatureName(int featureIndex)
featureIndex - the index of the featureboolean supportSegment()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.