|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unitn.disi.smatch.oracles.wordnet.InMemoryWordNetBinaryArray
public class InMemoryWordNetBinaryArray
Implements version of WN matcher which use a fast internal data structure.
| Constructor Summary | |
|---|---|
InMemoryWordNetBinaryArray()
|
|
| 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 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. |
void |
reportUsage()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InMemoryWordNetBinaryArray()
throws SMatchException
SMatchException| Method Detail |
|---|
public char getRelation(java.util.Vector<java.lang.String> sourceSenses,
java.util.Vector<java.lang.String> targetSenses)
IWordNetMatcher
getRelation in interface IWordNetMatchersourceSenses - source set of sensestargetSenses - target set of senses
public char getRelationACoL(IAtomicConceptOfLabel source,
IAtomicConceptOfLabel target)
IWordNetMatcher
getRelationACoL in interface IWordNetMatchersource - source ACoLtarget - targe ACoL
public boolean isSourceMoreGeneralThanTarget(java.lang.String source,
java.lang.String target)
IWordNetMatcher
isSourceMoreGeneralThanTarget in interface IWordNetMatchersource - source synset idtarget - target synset id
public boolean isSourceLessGeneralThanTarget(java.lang.String source,
java.lang.String target)
IWordNetMatcher
isSourceLessGeneralThanTarget in interface IWordNetMatchersource - source synset idtarget - target synset id
public boolean isSourceSynonymTarget(java.lang.String source,
java.lang.String target)
IWordNetMatcher
isSourceSynonymTarget in interface IWordNetMatchersource - source synset idtarget - target synset id
public boolean isSourceOppositeToTarget(java.lang.String source,
java.lang.String target)
IWordNetMatcher
isSourceOppositeToTarget in interface IWordNetMatchersource - source synset idtarget - target synset id
public void reportUsage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||