edu.stanford.nlp.trees.tregex.gui
Class Tdiff

java.lang.Object
  extended by edu.stanford.nlp.trees.tregex.gui.Tdiff

public class Tdiff
extends java.lang.Object

Extracts the differences between the sets of constituents indicated by a pair of parse trees. This class requires trees with CoreLabels.

Author:
Spence Green

Method Summary
static void main(java.lang.String[] args)
           
static java.util.Set<Constituent> markDiff(Tree t1, Tree t2)
          Marks bracketings in t2 not in t1 using the DoAnnotation field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

markDiff

public static java.util.Set<Constituent> markDiff(Tree t1,
                                                  Tree t2)
Marks bracketings in t2 not in t1 using the DoAnnotation field. Returns a list of brackets in t1 not in t2.

Parameters:
t1 -
t2 -
Returns:
A list of brackets in t1 not in t2;

main

public static void main(java.lang.String[] args)
Parameters:
args -


Stanford NLP Group