|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jmaxent.FeatureGen
public class FeatureGen
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 |
---|
public FeatureGen(Option option, Data data, Dictionary dict)
option
- the optiondata
- the datadict
- the dictMethod Detail |
---|
public void addFeature(Feature f)
f
- the fpublic void generateFeatures()
public int numFeatures()
public void readFeatures(java.io.BufferedReader fin) throws java.io.IOException
fin
- the fin
java.io.IOException
- Signals that an I/O exception has occurred.public void writeFeatures(java.io.PrintWriter fout) throws java.io.IOException
fout
- the fout
java.io.IOException
- Signals that an I/O exception has occurred.public void scanReset()
public void startScanFeatures(Observation obsr)
obsr
- the obsrpublic boolean hasNextFeature()
public Feature nextFeature()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |