edu.stanford.nlp.process
Interface Function<T1,T2>

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
Americanize, IdentityFunction, MaxentTagger, PTBEscapingProcessor

public interface Function<T1,T2>
extends java.io.Serializable

An interface for classes that act as a function transforming one object to another. This interface is widely used in the process package for various classes that do linguistic transformations.


Method Summary
 T2 apply(T1 in)
          Converts a T1 to a different T2.
 

Method Detail

apply

T2 apply(T1 in)
Converts a T1 to a different T2. For example, a Parser will convert a Sentence to a Tree. A Tagger will convert a Sentence to a TaggedSentence.