edu.stanford.nlp.parser.lexparser
Class TransformTreeDependency
java.lang.Object
edu.stanford.nlp.parser.lexparser.TransformTreeDependency
- All Implemented Interfaces:
- Function<Tree,Tree>, Serializable
public class TransformTreeDependency
- extends Object
- implements Function<Tree,Tree>
The purpose of this class is to do the necessary transformations to
parse trees read off the treebank, so that they can be passed to a
MLEDependencyGrammarExtractor
.
- Author:
- Kristina Toutanova (kristina@cs.stanford.edu)
- See Also:
- Serialized Form
Method Summary |
Tree |
apply(Tree tree)
Converts a T1 to a different T2. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformTreeDependency
public TransformTreeDependency(TreebankLangParserParams tlpParams,
boolean forceCNF)
apply
public Tree apply(Tree tree)
- 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<Tree,Tree>
Stanford NLP Group