com.googlecode.whatswrong
Class NLPDiff
java.lang.Object
com.googlecode.whatswrong.NLPDiff
public class NLPDiff
- extends 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
- all edges which are in both instances. These will
have the type "type:Match" where "type" is the original type of the edges.
- all edges which are only in the the
guess instance. These will have the type "type:FP"
- all edges which are only in the gold instance. These will have
the type "type:FN".
- Author:
- Sebastian Riedel
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NLPDiff
public NLPDiff()
diff
public NLPInstance diff(NLPInstance goldInstance,
NLPInstance guessInstance)
- Calculates the difference between two NLP instances in terms of their edges.
- Parameters:
goldInstance - the gold instanceguessInstance - the (system) guess instance.
- Returns:
- An NLPInstance with Matches, False Negatives and False Positives of the difference.
Copyright © 2013. All Rights Reserved.