it.unitn.disi.smatch.oracles
Interface IWordNetMatcher

All Known Implementing Classes:
DefaultWordNetMatcher, InMemoryWordNetBinaryArray

public interface IWordNetMatcher

An interface to WN matchers.

Author:
Mikalai Yatskevich mikalai.yatskevich@comlab.ox.ac.uk, Aliaksandr Autayeu avtaev@gmail.com

Method Summary
 char getRelation(java.util.Vector<java.lang.String> listSenseS, java.util.Vector<java.lang.String> listSenseT)
          Returns semantic relation holding between two sets of senses.
 char getRelationACoL(IAtomicConceptOfLabel source, IAtomicConceptOfLabel target)
          Retuns semantic relations which hols between two ACoLs.
 boolean isSourceLessGeneralThanTarget(java.lang.String source, java.lang.String target)
          Checks whether the source is less general than target.
 boolean isSourceMoreGeneralThanTarget(java.lang.String source, java.lang.String target)
          Checks whether the source is more general than target.
 boolean isSourceOppositeToTarget(java.lang.String source, java.lang.String target)
          Checks whether the source is disjoint with the target.
 boolean isSourceSynonymTarget(java.lang.String source, java.lang.String target)
          Checks whether the source is a synonym of the target.
 

Method Detail

getRelation

char getRelation(java.util.Vector<java.lang.String> listSenseS,
                 java.util.Vector<java.lang.String> listSenseT)
Returns semantic relation holding between two sets of senses.

Parameters:
listSenseS - source set of senses
listSenseT - target set of senses
Returns:
a relation

getRelationACoL

char getRelationACoL(IAtomicConceptOfLabel source,
                     IAtomicConceptOfLabel target)
Retuns semantic relations which hols between two ACoLs.

Parameters:
source - source ACoL
target - targe ACoL
Returns:
a relation

isSourceMoreGeneralThanTarget

boolean isSourceMoreGeneralThanTarget(java.lang.String source,
                                      java.lang.String target)
Checks whether the source is more general than target.

Parameters:
source - source synset id
target - target synset id
Returns:
whether relation holds

isSourceLessGeneralThanTarget

boolean isSourceLessGeneralThanTarget(java.lang.String source,
                                      java.lang.String target)
Checks whether the source is less general than target.

Parameters:
source - source synset id
target - target synset id
Returns:
whether relation holds

isSourceSynonymTarget

boolean isSourceSynonymTarget(java.lang.String source,
                              java.lang.String target)
Checks whether the source is a synonym of the target.

Parameters:
source - source synset id
target - target synset id
Returns:
whether relation holds

isSourceOppositeToTarget

boolean isSourceOppositeToTarget(java.lang.String source,
                                 java.lang.String target)
Checks whether the source is disjoint with the target.

Parameters:
source - source synset id
target - target synset id
Returns:
whether relation holds


© 2010 Knowdive @ DISI