edu.stanford.nlp.trees
Class WordCatEqualityChecker

java.lang.Object
  extended by edu.stanford.nlp.trees.WordCatEqualityChecker
All Implemented Interfaces:
EquivalenceClassEval.EqualityChecker

public class WordCatEqualityChecker
extends Object
implements EquivalenceClassEval.EqualityChecker

An EqualityChecker for WordCatConstituents. !ords only have to have the correct span while tags (word/POS) and cats (labeled brackets) must have correct span and label

Author:
Galen Andrew

Constructor Summary
WordCatEqualityChecker()
           
 
Method Summary
 boolean areEqual(Object o, Object o2)
          Returns true iff o1 and o2 are equal by the desired evaluation criterion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordCatEqualityChecker

public WordCatEqualityChecker()
Method Detail

areEqual

public boolean areEqual(Object o,
                        Object o2)
Description copied from interface: EquivalenceClassEval.EqualityChecker
Returns true iff o1 and o2 are equal by the desired evaluation criterion.

Specified by:
areEqual in interface EquivalenceClassEval.EqualityChecker


Stanford NLP Group