|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.tagger.maxent.Extractors
public class Extractors
Maintains a set of featuror extractors and applies them.
Constructor Summary | |
---|---|
Extractors()
|
Method Summary | |
---|---|
boolean |
equals(History h,
History h1)
|
String |
extract(int i,
History h)
Extract using the i'th extractor. |
int |
getSize()
|
void |
init(Extractor[] extrs)
Set the extractors from an array. |
int |
leftContext()
Find maximum left context of extractors. |
static void |
main(String[] args)
Prints out the pair of Extractors objects found in the
file that is the first and only argument. |
void |
read(String filename)
|
int |
rightContext()
Find maximum right context of extractors. |
void |
save(String filename)
|
void |
set(Extractor e,
int index)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Extractors()
Method Detail |
---|
public void init(Extractor[] extrs)
extrs
- The array of extractors. It is copied in this init.public String extract(int i, History h)
i
- The extractor to useh
- The history to extract from
public void set(Extractor e, int index)
public boolean equals(History h, History h1)
public int leftContext()
public int rightContext()
public int getSize()
public void save(String filename)
public void read(String filename)
public String toString()
toString
in class Object
public static void main(String[] args)
Extractors
objects found in the
file that is the first and only argument.
args
- Filename of extractors file (standardly written with
.ex extension)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |