|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.didion.jwnl.data.IndexWordSet
public class IndexWordSet
A class to simplify the access to a set of IndexWord
s, each containing
one part of speech of the same word. IndexWordSets are usually created by a
call to Dictionary.lookupAllIndexWords
.
Constructor Summary | |
---|---|
IndexWordSet(java.lang.String lemma)
|
Method Summary | |
---|---|
void |
add(IndexWord word)
Add an IndexWord to this set |
boolean |
equals(java.lang.Object object)
It is assumed that IndexWordSets will only be created by calling Dictionary.lookupAllIndexWords ,
so all IndexWordSets with the same lemma should be equal. |
IndexWord |
getIndexWord(POS p)
Get the IndexWord associated with p . |
IndexWord[] |
getIndexWordArray()
Get an array of the IndexWords in this set. |
java.util.Collection |
getIndexWordCollection()
Get a collection of the IndexWords in this set. |
java.lang.String |
getLemma()
|
int |
getSenseCount(POS pos)
Find out how many senses the word with part-of-speech pos has. |
java.util.Set |
getValidPOSSet()
Get a set of all the parts-of-speech for which there is an IndexWord in this set. |
boolean |
isValidPOS(POS pos)
Return true if there is a word with part-of-speech pos in
this set. |
void |
remove(POS p)
Remove the IndexWord associated with p from this set. |
int |
size()
Get the number of IndexWords in this set |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IndexWordSet(java.lang.String lemma)
Method Detail |
---|
public void add(IndexWord word)
public void remove(POS p)
p
from this set.
public int size()
public IndexWord getIndexWord(POS p)
p
.
public IndexWord[] getIndexWordArray()
public java.util.Collection getIndexWordCollection()
public java.util.Set getValidPOSSet()
public boolean isValidPOS(POS pos)
pos
in
this set.
public int getSenseCount(POS pos)
pos
has.
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getLemma()
public boolean equals(java.lang.Object object)
Dictionary.lookupAllIndexWords
,
so all IndexWordSets with the same lemma should be equal.
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |