|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eml.sir.rel.WordRelatednessComparator
org.eml.sir.rel.GlossaryBasedComparator
org.eml.sir.rel.PseudoGlossComparator
Comparator that computes relatedness as a result of gloss overlaps. Based on the idea introduced by Lesk (1986), using pseudo glosses.
Field Summary |
Fields inherited from class org.eml.sir.rel.WordRelatednessComparator |
noResultValue |
Constructor Summary | |
PseudoGlossComparator()
Create a new instance of PseudoGlossComparator. |
|
PseudoGlossComparator(PseudoGlossGenerator myGenerator)
Create a new instance of PseudoGlossComparator. |
Method Summary | |
char |
getPosOfWord1()
Return part of speech of the 1st word in the overlaps computation. |
char |
getPosOfWord2()
Return part of speech of the 2nd word in the overlaps computation. |
double |
getRelatedness(java.util.ArrayList word1,
java.util.ArrayList word2,
java.util.HashMap tableMap)
Return a relatedness value ESPECIALLY FOR LC_COMPARATOR!. |
double |
getRelatedness(java.lang.String word1,
java.lang.String word2)
Return a relatedness value. |
java.lang.String[] |
getRelatednessTrace(java.lang.String word1,
java.lang.String word2)
Return a trace that illustrates the relatedness computation. |
boolean |
getRelativeRelatedness()
Return wether this PseudoGlossComparator returns relative relatedness values or not. |
void |
setPosOfWord1(char pos)
Set part of speech of the 1st word in the overlaps computation. |
void |
setPosOfWord2(char pos)
Set part of speech of the 2nd word in the overlaps computation. |
void |
setRelativeRelatedness(boolean relative)
Set wether this PseudoGlossComparator returns relatedness values that are normalized by the number of all comparisons that are made to count the overlaps. |
Methods inherited from class org.eml.sir.rel.WordRelatednessComparator |
getGermaNetObject, setGermaNetObject |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PseudoGlossComparator()
public PseudoGlossComparator(PseudoGlossGenerator myGenerator)
Method Detail |
public char getPosOfWord1()
public void setPosOfWord1(char pos)
public char getPosOfWord2()
public void setPosOfWord2(char pos)
public boolean getRelativeRelatedness()
setRelativeRelatedness(boolean)
public void setRelativeRelatedness(boolean relative)
public double getRelatedness(java.util.ArrayList word1, java.util.ArrayList word2, java.util.HashMap tableMap)
WordRelatednessComparator
getRelatedness
in class WordRelatednessComparator
public double getRelatedness(java.lang.String word1, java.lang.String word2)
getRelatedness
in class WordRelatednessComparator
WordRelatednessComparator.getRelatedness(java.lang.String, java.lang.String)
public java.lang.String[] getRelatednessTrace(java.lang.String word1, java.lang.String word2)
getRelatednessTrace
in class WordRelatednessComparator
WordRelatednessComparator.getRelatednessTrace(java.lang.String, java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |