public class WaCKyDependencyExtractor extends CoNLLDependencyExtractor
DependencyTreeNode
innstances. The nodes contain relations between each word in the sentence.
The nodes in the returned array are ordered by the ordering of word
occurrences.
This class optionally supports filtering sentences to remove words. The
nodes for those removed words will still remain in the parse tree.
Similarly, the relations connecting the removed words will also existing.
However, the DependencyTreeNode.word()
method will return IteratorFactory.EMPTY_TOKEN
to indicate that the node's text was filtered
out. Note that the node will still have the original part of speech.Constructor and Description |
---|
WaCKyDependencyExtractor()
Creates a new
WaCKyDependencyExtractor that assumes the default
ordering for Malt dependency parses. |
WaCKyDependencyExtractor(TokenFilter filter,
Stemmer stemmer)
Creates a new
WaCKyDependencyExtractor that assumes the default
ordering for Malt dependency parses and uses the given TokenFilter and Stemmer . |
public WaCKyDependencyExtractor()
WaCKyDependencyExtractor
that assumes the default
ordering for Malt
dependency parses.public WaCKyDependencyExtractor(TokenFilter filter, Stemmer stemmer)
WaCKyDependencyExtractor
that assumes the default
ordering for Malt
dependency parses and uses the given TokenFilter
and Stemmer
.Copyright © 2012. All Rights Reserved.