public class CollinsHeadDependencyParser extends Object
Constructor and Description |
---|
CollinsHeadDependencyParser() |
CollinsHeadDependencyParser(boolean convertPrepositionsToEdgeLabels)
Create a CollinsHeadDependencyParser
|
CollinsHeadDependencyParser(boolean convertPrepositionsToEdgeLabels,
CollinsHeadFinder headFinder) |
Modifier and Type | Method and Description |
---|---|
protected edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer>> |
collapseClitics(edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer>> tree) |
protected edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer>> |
collapsePrepositionLabels(edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer>> tree) |
edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<String> |
getDependencyTree(Constituent parseTreeRoot) |
protected edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer> |
getEdgeLabel(Constituent parseTreeRoot,
String string,
Constituent child) |
edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer>> |
getLabeledDependencyTree(Constituent parseTreeRoot) |
static void |
main(String[] args) |
protected edu.illinois.cs.cogcomp.core.datastructures.Pair<edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer>>,String> |
processPPTree(edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer>> tree) |
public CollinsHeadDependencyParser(boolean convertPrepositionsToEdgeLabels)
convertPrepositionsToEdgeLabels
- Should prepositions be merged into the edge labels?public CollinsHeadDependencyParser(boolean convertPrepositionsToEdgeLabels, CollinsHeadFinder headFinder)
public CollinsHeadDependencyParser()
public edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<String> getDependencyTree(Constituent parseTreeRoot)
public edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer>> getLabeledDependencyTree(Constituent parseTreeRoot)
protected edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer>> collapseClitics(edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer>> tree)
tree
- protected edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer>> collapsePrepositionLabels(edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer>> tree)
tree
- protected edu.illinois.cs.cogcomp.core.datastructures.Pair<edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer>>,String> processPPTree(edu.illinois.cs.cogcomp.core.datastructures.trees.Tree<edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer>> tree)
child
- protected edu.illinois.cs.cogcomp.core.datastructures.Pair<String,Integer> getEdgeLabel(Constituent parseTreeRoot, String string, Constituent child)
parseTreeRoot
- string
- child
- public static void main(String[] args)
Copyright © 2015. All rights reserved.