|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgermanet.Synset
public class Synset
A Synset belongs to a
WordClass (WordClass.adj, WordClass.nomen, WordClass.verben) and
consists of Lists of LexUnits, Frames, paraphrases (Strings),
and Examples. The List of LexUnits is
never empty, but any of the others may be.
A Synset also has the
conceptual relations (of which hyperonymy, hyponymy, meronymy, and holonymy
are transitive):
ConRel.hyperonymy, ConRel.hyponymy,
ConRel.meronymy, ConRel.holonymy,
ConRel.entailment, ConRel.entailed,
ConRel.causation, ConRel.caused,
ConRel.association
Methods are provided to get the WordClass, attibution,
Examples, Frames, paraphrases, and the LexUnits.
Conceptual relations can be retrieved:
List<Synset> hyperonyms = aSynset.getRelations(ConRel.hyperonymy);
Transitive relations can be retrieved:
List<List<Synset>> meronyms = aSynset.getTransRelations(ConRel.meronymy);
which returns a List of Lists, each representing the Synsets found at a depth.
Neighbors (all Synsets that are related to this one) can be retrieved:
List<Synset> neighbors = aSynset.getRelations();
Unless otherwise stated, methods will return an empty List rather than null
to indicate that no objects exist for the given request.
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getAllOrthForms()
Return a List of all orthographic forms contained in all LexUnits of this Synset. |
java.util.List<Example> |
getExamples()
Return a List of this Synset's Examples. |
java.util.List<Frame> |
getFrames()
Return a List of this Synset's Frames. |
java.lang.String |
getID()
Return the unique identifier for this Synset. |
java.util.List<LexUnit> |
getLexUnits()
Return a List of this Synset's LexUnits. |
java.util.List<java.lang.String> |
getParaphrases()
Return a List of this Synset's paraphrases. |
java.util.List<Synset> |
getRelations()
Return a List of all of the Synsets that this Synset has any relation to. |
java.util.List<Synset> |
getRelations(ConRel type)
Return a List of this Synset's relations of type type. |
java.util.List<java.util.List<Synset>> |
getTransRelations(ConRel type)
Returns the transitive closure of all relations of type type to this Synset. |
WordClass |
getWordClass()
Return the word class that this Synset belongs to. |
int |
numExamples()
Return the number of Examples in this Synset. |
int |
numFrames()
Return the number of Frames in this Synset. |
int |
numLexUnits()
Return the number of LexUnits in this Synset. |
int |
numParaphrases()
Return the number of paraphrases in this Synset. |
java.lang.String |
toString()
Return a String representation of this Synset. |
java.lang.String |
xmlString()
Return an xml String representation of this Synset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public WordClass getWordClass()
public int numLexUnits()
public int numParaphrases()
public int numFrames()
public int numExamples()
public java.lang.String getID()
public java.util.List<LexUnit> getLexUnits()
public java.util.List<java.lang.String> getAllOrthForms()
public java.util.List<java.lang.String> getParaphrases()
public java.util.List<Example> getExamples()
public java.util.List<Frame> getFrames()
public java.util.List<Synset> getRelations(ConRel type)
type
- type of relations to retrieve.
public java.util.List<java.util.List<Synset>> getTransRelations(ConRel type)
type
- the type of relation (eg ConRel.hyperonymy).
public java.util.List<Synset> getRelations()
public java.lang.String xmlString()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |