iitb.CRF
Interface Feature

All Known Implementing Classes:
FeatureImpl

public interface Feature

A single feature returned by the FeatureGenerator needs to support this interface.

Author:
Sunita Sarawagi

Method Summary
 int index()
           
 float value()
          can be -1 if the feature is a state, rather than an edge feature
 int y()
          the index of this feature from 0..numFeatures-1.
 int yprev()
          has to be a label index from 0..numLabels-1
 

Method Detail

index

public int index()

y

public int y()
the index of this feature from 0..numFeatures-1.


yprev

public int yprev()
has to be a label index from 0..numLabels-1


value

public float value()
can be -1 if the feature is a state, rather than an edge feature



Submit a bug or feature.