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

All Superinterfaces:
Serializable
All Known Implementing Classes:
Americanize, IdentityFunction, LexicalizedParser, Morphology, PTBEscapingProcessor, TransformTreeDependency

public interface Function<T1,T2>
extends 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.

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.



Stanford NLP Group