edu.stanford.nlp.trees
Class PairFinder
java.lang.Object
|
+--edu.stanford.nlp.trees.PairFinder
- public class PairFinder
- extends Object
A class with a main()
method which finds all
argument-head and modifier-head pairs in a treebank and prints them out.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PairFinder
public PairFinder()
printWordPairs
public void printWordPairs(Tree t,
FileWriter writer)
- Finds all argument-head and modifier-head pairs and prints them
out. Right now the pairs are just printed to a file, but we
could change this... We assume that the tree has already had its
heads percolated.
main
public static void main(String[] args)
Stanford NLP Group