edu.stanford.nlp.tagger.maxent
Class Extractors
java.lang.Object
edu.stanford.nlp.tagger.maxent.Extractors
- All Implemented Interfaces:
- java.io.Serializable
public class Extractors
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Extractors
public Extractors()
Extractors
public Extractors(int length)
init
public void init(Extractor[] extrs)
- set the extractors from an array
extract
public java.lang.String extract(int i,
History h)
- extract using the i-th extractor
set
public void set(Extractor e,
int index)
equals
public boolean equals(History h,
History h1)
leftContext
public int leftContext()
- Returns:
- the maximum of the left contexts used by all extractors. used in TagInference to decide windows for dynamic programming
rightContext
public int rightContext()
- Returns:
- the maximum of the left contexts used by all extractors. used in TagInference to decide windows for dynamic programming
getSize
public int getSize()
save
public void save(java.lang.String filename)
read
public void read(java.lang.String filename)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
main
public static void main(java.lang.String[] args)
- Prints out the pair of
Extractors
objects found in the
file that is the first and only argument.