it.unitn.disi.smatch.matchers.element
Class EvalELMatcher

java.lang.Object
  extended by it.unitn.disi.smatch.matchers.element.EvalELMatcher
All Implemented Interfaces:
IMatcherLibrary

public class EvalELMatcher
extends java.lang.Object
implements IMatcherLibrary

Matches acols of formulas for evaluation. Expects the source and target to be the same context, preprocessed in a different way. To be used with EvalTLMatcher for formulas evaluation.

Author:
Aliaksandr Autayeu avtaev@gmail.com

Field Summary
static char APPROXIMATE_SENSE_MATCH
           
static char EXACT_SENSE_MATCH
           
static char EXTRA_SENSES
           
static char LEMMA_MATCH
           
static char NO_SENSES
           
static char SENSE_MISMATCH
           
static char TOKEN_MATCH
           
 
Constructor Summary
EvalELMatcher()
           
 
Method Summary
 IMatchMatrix elementLevelMatching(IContext sourceContext, IContext targetContext)
          Matches acols of same nodes.
 char getRelation(IAtomicConceptOfLabel sourceACoL, IAtomicConceptOfLabel targetACoL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXACT_SENSE_MATCH

public static final char EXACT_SENSE_MATCH
See Also:
Constant Field Values

APPROXIMATE_SENSE_MATCH

public static final char APPROXIMATE_SENSE_MATCH
See Also:
Constant Field Values

SENSE_MISMATCH

public static final char SENSE_MISMATCH
See Also:
Constant Field Values

TOKEN_MATCH

public static final char TOKEN_MATCH
See Also:
Constant Field Values

LEMMA_MATCH

public static final char LEMMA_MATCH
See Also:
Constant Field Values

NO_SENSES

public static final char NO_SENSES
See Also:
Constant Field Values

EXTRA_SENSES

public static final char EXTRA_SENSES
See Also:
Constant Field Values
Constructor Detail

EvalELMatcher

public EvalELMatcher()
Method Detail

elementLevelMatching

public IMatchMatrix elementLevelMatching(IContext sourceContext,
                                         IContext targetContext)
                                  throws SMatchException
Matches acols of same nodes.

Specified by:
elementLevelMatching in interface IMatcherLibrary
Parameters:
sourceContext - context to be evaluated
targetContext - golden context
Returns:
cLabMatrix
Throws:
SMatchException

getRelation

public char getRelation(IAtomicConceptOfLabel sourceACoL,
                        IAtomicConceptOfLabel targetACoL)


© 2010 Knowdive @ DISI