jmaxent
Class FeatureGen

java.lang.Object
  extended by jmaxent.FeatureGen

public class FeatureGen
extends java.lang.Object

The Class FeatureGen.


Constructor Summary
FeatureGen(Option option, Data data, Dictionary dict)
          Instantiates a new feature gen.
 
Method Summary
 void addFeature(Feature f)
          Adds the feature.
 void generateFeatures()
          Generate features.
 boolean hasNextFeature()
          Checks for next feature.
 Feature nextFeature()
          Next feature.
 int numFeatures()
          Num features.
 void readFeatures(java.io.BufferedReader fin)
          Read features.
 void scanReset()
          Scan reset.
 void startScanFeatures(Observation obsr)
          Start scan features.
 void writeFeatures(java.io.PrintWriter fout)
          Write features.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureGen

public FeatureGen(Option option,
                  Data data,
                  Dictionary dict)
Instantiates a new feature gen.

Parameters:
option - the option
data - the data
dict - the dict
Method Detail

addFeature

public void addFeature(Feature f)
Adds the feature.

Parameters:
f - the f

generateFeatures

public void generateFeatures()
Generate features.


numFeatures

public int numFeatures()
Num features.

Returns:
the int

readFeatures

public void readFeatures(java.io.BufferedReader fin)
                  throws java.io.IOException
Read features.

Parameters:
fin - the fin
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

writeFeatures

public void writeFeatures(java.io.PrintWriter fout)
                   throws java.io.IOException
Write features.

Parameters:
fout - the fout
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

scanReset

public void scanReset()
Scan reset.


startScanFeatures

public void startScanFeatures(Observation obsr)
Start scan features.

Parameters:
obsr - the obsr

hasNextFeature

public boolean hasNextFeature()
Checks for next feature.

Returns:
true, if successful

nextFeature

public Feature nextFeature()
Next feature.

Returns:
the feature