edu.stanford.nlp.process
Class TreeToSentenceAppliable
java.lang.Object
|
+--edu.stanford.nlp.process.TreeToSentenceAppliable
- All Implemented Interfaces:
- Appliable
- public class TreeToSentenceAppliable
- extends Object
- implements Appliable
Appliable 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 |
TreeToSentenceAppliable
public TreeToSentenceAppliable()
apply
public Object apply(Object tree)
- Returns the Sentence yield of the given Tree.
- Specified by:
apply
in interface Appliable
Stanford NLP Group