com.googlecode.whatswrong
Class NLPDiff

java.lang.Object
  extended by com.googlecode.whatswrong.NLPDiff

public class NLPDiff
extends java.lang.Object

An NLPDiff object takes two NLPInstances, a gold and a guess instance, and compares the set of edges that both contain. The result is a new NLP instance that contains

Author:
Sebastian Riedel

Constructor Summary
NLPDiff()
           
 
Method Summary
 NLPInstance diff(NLPInstance goldInstance, NLPInstance guessInstance)
          Calculates the difference between two NLP instances in terms of their edges.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NLPDiff

public NLPDiff()
Method Detail

diff

public NLPInstance diff(NLPInstance goldInstance,
                        NLPInstance guessInstance)
Calculates the difference between two NLP instances in terms of their edges.

Parameters:
goldInstance - the gold instance
guessInstance - the (system) guess instance.
Returns:
An NLPInstance with Matches, False Negatives and False Positives of the difference.


Copyright © 2010. All Rights Reserved.