edu.stanford.nlp.process
Class TreeToSentenceFunction
java.lang.Object
edu.stanford.nlp.process.TreeToSentenceFunction
- All Implemented Interfaces:
- Function
- public class TreeToSentenceFunction
- extends Object
- implements Function
Function that turns a Tree into its Sentence yield.
This is essentially flattening out the tree structure.
- Author:
- Joseph Smarr (jsmarr@stanford.edu)
Method Summary |
Object |
apply(Object tree)
Returns the Sentence yield of the given Tree. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeToSentenceFunction
public TreeToSentenceFunction()
apply
public Object apply(Object tree)
- Returns the Sentence yield of the given Tree.
- Specified by:
apply
in interface Function
Stanford NLP Group