Class CorrespondenceHeuristics

java.lang.Object
  |
  +--CorrespondenceHeuristics

public class CorrespondenceHeuristics
extends java.lang.Object

The class `CorrespondenceHeuristics' implements various correspondence heuristics used to infer correspondences between frames.


Field Summary
static int _frameClassThesaurusLookups
           
static int _nameThesaurusLookups
           
static byte CORRESPONDENCE
           
static byte NO_CORRESPONDENCE
           
static byte PLAUSIBLE_CORRESPONDENCE
           
 
Constructor Summary
CorrespondenceHeuristics()
           
 
Method Summary
static byte sanctionCorrespondence(Frame frame1, Frame frame2, EntityPair entityPair)
          Returns CORRESPONDENCE if two frames definitely correspond (according to an appropriate correspondence heuristic), NO_CORRESPONDENCE if they definitely don't correspond, and PLAUSIBLE_CORRESPONDENCE if they might correspond (but might later be found not to).
static java.lang.String stripUnderscores(java.lang.String s)
          Removes underscores (`_`) from a string, e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_CORRESPONDENCE

public static final byte NO_CORRESPONDENCE

PLAUSIBLE_CORRESPONDENCE

public static final byte PLAUSIBLE_CORRESPONDENCE

CORRESPONDENCE

public static final byte CORRESPONDENCE

_nameThesaurusLookups

public static int _nameThesaurusLookups

_frameClassThesaurusLookups

public static int _frameClassThesaurusLookups
Constructor Detail

CorrespondenceHeuristics

public CorrespondenceHeuristics()
Method Detail

sanctionCorrespondence

public static byte sanctionCorrespondence(Frame frame1,
                                          Frame frame2,
                                          EntityPair entityPair)
Returns CORRESPONDENCE if two frames definitely correspond (according to an appropriate correspondence heuristic), NO_CORRESPONDENCE if they definitely don't correspond, and PLAUSIBLE_CORRESPONDENCE if they might correspond (but might later be found not to).
Parameters:
frame1 - The first frame.
frame2 - The second frame.
entityPair - The current entity-pair for the summarised output (optional).
Returns:
One of CORRESPONDENCE, PLAUSIBLE_CORRESPONDENCE and NO_CORRESPONDENCE.

stripUnderscores

public static java.lang.String stripUnderscores(java.lang.String s)
Removes underscores (`_`) from a string, e.g. "entity_type" -> "entitytype".
Parameters:
s - The string from which to remove underscores.
Returns:
A string which is a copy of s with underscores removed.