edu.gwu.wordnet
Class POS
java.lang.Object
edu.gwu.wordnet.POS
- public class POS
- extends java.lang.Object
Instances of this class enumerate the possible major syntactic categories, or
part's of speech. Each POS
has
a human-readable label that can be used to print it, and a key by which it can be looked up.
Constructor Summary |
protected |
POS(java.lang.String label,
java.lang.String key)
|
Method Summary |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getLabel()
Return a label intended for textual presentation. |
int |
hashCode()
|
static POS |
lookup(java.lang.String key)
Return the PointerType whose key matches key. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NOUN
public static final POS NOUN
VERB
public static final POS VERB
ADJ
public static final POS ADJ
ADV
public static final POS ADV
CATS
public static final POS[] CATS
- A list of all
POS
s.
label
protected java.lang.String label
key
protected java.lang.String key
POS
protected POS(java.lang.String label,
java.lang.String key)
toString
public java.lang.String toString()
equals
public boolean equals(java.lang.Object object)
hashCode
public int hashCode()
getLabel
public java.lang.String getLabel()
- Return a label intended for textual presentation.
lookup
public static POS lookup(java.lang.String key)
- Return the
PointerType
whose key matches key.
- Throws:
java.util.NoSuchElementException
- If key doesn't name any POS
.