|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object leila.relations.Relation leila.relations.Synonymy
public class Synonymy
This class is part of LEILA (http://mpii.de/yago-naga/leila). It is licensed under the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0) by the author Fabian M. Suchanek (http://suchanek.name).
Synonymy.java implements the Synonymy-Relation from WordNet. The class requires the file wn_s.pl. It can be downloaded from the WordNet site. It is part of the Prolog version of WordNet. The following parameter is required in leila.ini:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class leila.relations.Relation |
---|
Relation.WordPairType |
Field Summary | |
---|---|
protected WordNet |
wn
Holds the wordnet data |
Constructor Summary | |
---|---|
Synonymy()
Constructor |
Method Summary | |
---|---|
Relation.WordPairType |
assess(LinkageWord w1,
LinkageWord w2)
Judges a pair of words |
static void |
main(java.lang.String[] argv)
Test routine |
boolean |
possibleExample(LinkageWord w)
Tells whether the word is a name |
boolean |
requiresCounterexamples()
returns true |
java.lang.String |
toString()
Returns all synsets |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected WordNet wn
Constructor Detail |
---|
public Synonymy() throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public boolean requiresCounterexamples()
requiresCounterexamples
in class Relation
public boolean possibleExample(LinkageWord w)
possibleExample
in class Relation
public Relation.WordPairType assess(LinkageWord w1, LinkageWord w2)
assess
in class Relation
public java.lang.String toString()
toString
in class Relation
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |