public final class POS extends Object implements Serializable
POS
has a human-readable
label that can be used to print it, and a key by which it can be looked up.Modifier and Type | Field and Description |
---|---|
static POS |
ADJECTIVE |
static POS |
ADVERB |
static POS |
NOUN |
static POS |
VERB |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
An instance of POS is equal to another iff they're underlying keys are
equal.
|
static List |
getAllPOS() |
String |
getKey()
Gets the key for this POS.
|
String |
getLabel()
Return a label intended for textual presentation.
|
static POS |
getPOSForKey(String key)
Return the
POS whose key matches key,
or null if the key does not match any POS. |
static POS |
getPOSForLabel(String label)
Return the
POS whose key matches label,
or null if the label does not match any POS. |
int |
hashCode()
Returns the underlying pos key's hashcode.
|
String |
toString() |
public static final POS NOUN
public static final POS VERB
public static final POS ADJECTIVE
public static final POS ADVERB
public static List getAllPOS()
public static POS getPOSForLabel(String label)
POS
whose key matches label,
or null if the label does not match any POS.public static POS getPOSForKey(String key)
POS
whose key matches key,
or null if the key does not match any POS.public int hashCode()
public boolean equals(Object obj)
public String getLabel()
public String getKey()
Copyright © 2016. All rights reserved.