|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISynset
Represents a synset.
| Method Summary | |
|---|---|
java.lang.String |
getGloss()
Returns the gloss (brief, plain-English description) of this synset. |
ILexFile |
getLexicalFile()
Returns a description of the lexical file. |
int |
getOffset()
Returns the data file byte offset of this synset. |
java.util.Map<IPointer,java.util.List<ISynsetID>> |
getRelatedMap()
Returns an immutable map from semantic pointers to immutable lists of synsets. |
java.util.List<ISynsetID> |
getRelatedSynsets()
Returns an immutable list of synset ids for all synsets that are connected by pointers to this synset. |
java.util.List<ISynsetID> |
getRelatedSynsets(IPointer ptr)
Returns an immutable list of the ids of all synsets that are related to this synset by the specified pointer type. |
int |
getType()
Returns the type of the synset, encoded as follows: 1=Noun, 2=Verb, 3=Adjective, 4=Adverb, 5=Adjective Satellite. |
IWord |
getWord(int wordNumber)
Returns the word with the specified word number. |
java.util.List<IWord> |
getWords()
Returns an immutable list of the word objects (synset, index word pairs) associated with this synset. |
boolean |
isAdjectiveHead()
Returns true if this synset is an adjective head;
false otherwise. |
boolean |
isAdjectiveSatellite()
Returns true if this synset is an adjective satellite;
false otherwise. |
| Methods inherited from interface edu.mit.jwi.item.IHasPOS |
|---|
getPOS |
| Methods inherited from interface edu.mit.jwi.item.IItem |
|---|
getID |
| Method Detail |
|---|
int getOffset()
ILexFile getLexicalFile()
int getType()
java.lang.String getGloss()
null, non-empty gloss.java.util.List<IWord> getWords()
null, immutable list of words for this synsetIWord getWord(int wordNumber)
wordNumber - the number of the word to be retrieved
java.lang.IndexOutOfBoundsException - if the word number is not an appropriate word number for this
synset.boolean isAdjectiveHead()
true if this synset is an adjective head;
false otherwise.
true if this synset represents an adjective head;
false otherwise.boolean isAdjectiveSatellite()
true if this synset is an adjective satellite;
false otherwise.
true if this synset represents an adjective satellite;
false otherwise.java.util.Map<IPointer,java.util.List<ISynsetID>> getRelatedMap()
IWord.getRelatedMap() on the appropriate word.
null, unmodifiable map from pointers to
synsetsjava.util.List<ISynsetID> getRelatedSynsets(IPointer ptr)
IWord.getRelatedWords()() on the
appropriate object.
If there are no such synsets, this method returns the empty list.
ptr - the pointer for which related synsets are to be retrieved.
java.util.List<ISynsetID> getRelatedSynsets()
IWord objects.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||