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

All Known Implementing Classes:
AbstractSequenceClassifier, Americanize, CRFClassifier, IdentityFunction, Morphology

public interface Function<T1,T2>

An interface for classes that act as a function transforming one object to another.

Author:
Dan Klein

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.

Parameters:
in - The function's argument
Returns:
The function's evaluated value


Stanford NLP Group