| Constructor and Description |
|---|
BasicFeature() |
BasicFeature(BasicFeature f) |
BasicFeature(FeatureIdentifier id,
int label,
double val) |
BasicFeature(FeatureIdentifier id,
int prevLabel,
int label,
double val) |
BasicFeature(String id,
int label,
double val) |
BasicFeature(String id,
int prevLabel,
int label,
double val) |
| Modifier and Type | Method and Description |
|---|---|
Feature |
copy()
Gets a copy of the current feature
|
void |
copyFrom(BasicFeature f) |
FeatureIdentifier |
getID()
One can quickly find out the index of the current feature according to its unique identifier
|
int |
getIndex()
The index of this feature from 0..numFeatures-1.
|
int |
getLabel()
has to be a label index from 0..numLabels-1
|
int |
getPrevLabel()
can be -1 if the feature is a state rather than an edge feature
|
double |
getValue() |
void |
setID(FeatureIdentifier id)
Sets the identitifer
|
void |
setIndex(int index)
Sets the index of the feature
|
void |
setLabel(int label)
Sets the label of the current feature
|
void |
setPrevLabel(int prevLabel)
Sets the label of the starting state of an edge feature if the current feature is an edge feature.
|
void |
setValue(double val)
Sets the value to the feature
|
String |
toString() |
public BasicFeature()
public BasicFeature(String id, int label, double val)
public BasicFeature(FeatureIdentifier id, int label, double val)
public BasicFeature(String id, int prevLabel, int label, double val)
public BasicFeature(FeatureIdentifier id, int prevLabel, int label, double val)
public BasicFeature(BasicFeature f)
public void copyFrom(BasicFeature f)
public Feature copy()
Featurepublic int getIndex()
Featurepublic void setIndex(int index)
Featurepublic int getLabel()
Featurepublic void setLabel(int label)
Featurepublic int getPrevLabel()
FeaturegetPrevLabel in interface Featurepublic void setPrevLabel(int prevLabel)
FeaturesetPrevLabel in interface FeatureprevLabel - the label of the starting state of an edge featurepublic double getValue()
public void setValue(double val)
Featurepublic FeatureIdentifier getID()
Featurepublic void setID(FeatureIdentifier id)
FeatureCopyright © 2018 JULIE Lab, Germany. All rights reserved.