edu.stanford.nlp.tagger.maxent
Class Extractors

java.lang.Object
  extended by 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

Constructor Summary
Extractors()
           
Extractors(int length)
           
 
Method Summary
 boolean equals(History h, History h1)
           
 java.lang.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()
           
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.
 void read(java.lang.String filename)
           
 int rightContext()
           
 void save(java.lang.String filename)
           
 void set(Extractor e, int index)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Extractors

public Extractors()

Extractors

public Extractors(int length)
Method Detail

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.