public class CollinsHeadDependencyParser extends Object
Constructor and Description |
---|
CollinsHeadDependencyParser(boolean convertPrepositionsToEdgeLabels)
Create a CollinsHeadDependencyParser
|
CollinsHeadDependencyParser(boolean convertPrepositionsToEdgeLabels,
CollinsHeadFinder headFinder) |
Modifier and Type | Method and Description |
---|---|
protected Tree<Pair<String,Integer>> |
collapseClitics(Tree<Pair<String,Integer>> tree) |
protected Tree<Pair<String,Integer>> |
collapsePrepositionLabels(Tree<Pair<String,Integer>> tree) |
Tree<String> |
getDependencyTree(Constituent parseTreeRoot) |
protected Pair<String,Integer> |
getEdgeLabel(Constituent parseTreeRoot,
String string,
Constituent child) |
Tree<Pair<String,Integer>> |
getLabeledDependencyTree(Constituent parseTreeRoot) |
protected Pair<Tree<Pair<String,Integer>>,String> |
processPPTree(Tree<Pair<String,Integer>> tree) |
public CollinsHeadDependencyParser(boolean convertPrepositionsToEdgeLabels)
convertPrepositionsToEdgeLabels
- Should prepositions be merged into the edge labels?public CollinsHeadDependencyParser(boolean convertPrepositionsToEdgeLabels, CollinsHeadFinder headFinder)
public Tree<String> getDependencyTree(Constituent parseTreeRoot)
public Tree<Pair<String,Integer>> getLabeledDependencyTree(Constituent parseTreeRoot)
protected Tree<Pair<String,Integer>> collapseClitics(Tree<Pair<String,Integer>> tree)
protected Tree<Pair<String,Integer>> collapsePrepositionLabels(Tree<Pair<String,Integer>> tree)
protected Pair<Tree<Pair<String,Integer>>,String> processPPTree(Tree<Pair<String,Integer>> tree)
protected Pair<String,Integer> getEdgeLabel(Constituent parseTreeRoot, String string, Constituent child)
Copyright © 2017. All rights reserved.