edu.stanford.nlp.objectbank
Class IdentityFunction
java.lang.Object
edu.stanford.nlp.objectbank.IdentityFunction
- All Implemented Interfaces:
- Function, Serializable
public class IdentityFunction
- extends Object
- implements Function
- Author:
- Jenny Finkel
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentityFunction
public IdentityFunction()
apply
public Object apply(Object o)
- Description copied from interface:
Function
- 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.
- Specified by:
apply
in interface Function
- Parameters:
o
- The Object to be returned
- Returns:
- o
Stanford NLP Group