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.


Constructor Summary
PairFinder()
           
 
Method Summary
static void main(String[] args)
           
 void printWordPairs(Tree t, FileWriter writer)
          Finds all argument-head and modifier-head pairs and prints them out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PairFinder

public PairFinder()
Method Detail

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