it.unitn.disi.smatch.oracles
Interface ISenseMatcher

All Superinterfaces:
IConfigurable
All Known Implementing Classes:
InMemoryWordNetBinaryArray, WordNet

public interface ISenseMatcher
extends IConfigurable

An interface to sense matchers.

Author:
Mikalai Yatskevich mikalai.yatskevich@comlab.ox.ac.uk,

Method Summary
 char getRelation(java.util.List<ISense> sourceSenses, java.util.List<ISense> targetSenses)
          Returns semantic relation holding between two sets of senses.
 boolean isSourceLessGeneralThanTarget(ISense source, ISense target)
          Checks whether the source is less general than target.
 boolean isSourceMoreGeneralThanTarget(ISense source, ISense target)
          Checks whether the source is more general than target.
 boolean isSourceOppositeToTarget(ISense source, ISense target)
          Checks whether the source is disjoint with the target.
 boolean isSourceSynonymTarget(ISense source, ISense target)
          Checks whether the source is a synonym of the target.
 
Methods inherited from interface it.unitn.disi.smatch.components.IConfigurable
getProperties, setProperties, setProperties
 

Method Detail

getRelation

char getRelation(java.util.List<ISense> sourceSenses,
                 java.util.List<ISense> targetSenses)
                 throws SenseMatcherException
Returns semantic relation holding between two sets of senses.

Parameters:
sourceSenses - source set of senses
targetSenses - target set of senses
Returns:
a relation
Throws:
SenseMatcherException - SenseMatcherException

isSourceMoreGeneralThanTarget

boolean isSourceMoreGeneralThanTarget(ISense source,
                                      ISense target)
                                      throws SenseMatcherException
Checks whether the source is more general than target.

Parameters:
source - source sense
target - target sense
Returns:
whether relation holds
Throws:
SenseMatcherException - SenseMatcherException

isSourceLessGeneralThanTarget

boolean isSourceLessGeneralThanTarget(ISense source,
                                      ISense target)
                                      throws SenseMatcherException
Checks whether the source is less general than target.

Parameters:
source - source sense
target - target sense
Returns:
whether relation holds
Throws:
SenseMatcherException - SenseMatcherException

isSourceSynonymTarget

boolean isSourceSynonymTarget(ISense source,
                              ISense target)
                              throws SenseMatcherException
Checks whether the source is a synonym of the target.

Parameters:
source - source sense
target - target sense
Returns:
whether relation holds
Throws:
SenseMatcherException - SenseMatcherException

isSourceOppositeToTarget

boolean isSourceOppositeToTarget(ISense source,
                                 ISense target)
                                 throws SenseMatcherException
Checks whether the source is disjoint with the target.

Parameters:
source - source sense
target - target sense
Returns:
whether relation holds
Throws:
SenseMatcherException - SenseMatcherException


© 2010-2011 Knowdive @ DISI