|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.unitn.disi.smatch.oracles.wordnet.DefaultWordNetMatcher
public class DefaultWordNetMatcher
Default matcher, queries WordNet via JWNL library.
Constructor Summary | |
---|---|
DefaultWordNetMatcher()
|
Method Summary | |
---|---|
char |
getRelation(java.util.Vector<java.lang.String> sourceSenses,
java.util.Vector<java.lang.String> targetSenses)
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 source sence less general than target Currently used version of Java WordNet Interface Library finds more general relationships (hypernymy and holonymy) faster than less general so this method just flip the parameters and call isSourceMoreGeneralThanTarget method |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultWordNetMatcher()
Method Detail |
---|
public char getRelation(java.util.Vector<java.lang.String> sourceSenses, java.util.Vector<java.lang.String> targetSenses)
IWordNetMatcher
getRelation
in interface IWordNetMatcher
sourceSenses
- source set of sensestargetSenses
- target set of senses
public char getRelationACoL(IAtomicConceptOfLabel source, IAtomicConceptOfLabel target)
IWordNetMatcher
getRelationACoL
in interface IWordNetMatcher
source
- source ACoLtarget
- targe ACoL
public boolean isSourceSynonymTarget(java.lang.String source, java.lang.String target)
IWordNetMatcher
isSourceSynonymTarget
in interface IWordNetMatcher
source
- source synset idtarget
- target synset id
public boolean isSourceOppositeToTarget(java.lang.String source, java.lang.String target)
IWordNetMatcher
isSourceOppositeToTarget
in interface IWordNetMatcher
source
- source synset idtarget
- target synset id
public boolean isSourceLessGeneralThanTarget(java.lang.String source, java.lang.String target)
isSourceLessGeneralThanTarget
in interface IWordNetMatcher
source
- target
-
public boolean isSourceMoreGeneralThanTarget(java.lang.String source, java.lang.String target)
IWordNetMatcher
isSourceMoreGeneralThanTarget
in interface IWordNetMatcher
source
- source synset idtarget
- target synset id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |