public enum POS extends Enum<POS>
| Enum Constant and Description |
|---|
ADJECTIVE
Object representing the Adjective part of speech.
|
ADVERB
Object representing the Adverb part of speech.
|
NOUN
Object representing the Noun part of speech.
|
VERB
Object representing the Verb part of speech.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
NUM_ADJECTIVE |
static int |
NUM_ADJECTIVE_SATELLITE |
static int |
NUM_ADVERB |
static int |
NUM_NOUN |
static int |
NUM_VERB |
static char |
TAG_ADJECTIVE |
static char |
TAG_ADJECTIVE_SATELLITE |
static char |
TAG_ADVERB |
static char |
TAG_NOUN |
static char |
TAG_VERB |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumber()
Returns the standard WordNet number of this part of speech
|
static POS |
getPartOfSpeech(char tag)
Retrieves of the part of speech object given the tag.
|
static POS |
getPartOfSpeech(int num)
Retrieves the part of speech object given the number.
|
Set<String> |
getResourceNameHints()
Returns a set of strings that can be used to identify resource
corresponding to objects with this part of speech.
|
char |
getTag()
The tag that is used to indicate this part of speech in Wordnet data
files
|
static boolean |
isAdjectiveSatellite(char tag)
Returns
true if the specified character represents an
adjective satellite, namely, if the number is 's' or 'S';
false otherwise |
static boolean |
isAdjectiveSatellite(int num)
Returns
true if the specified number represents an adjective
satellite, namely, if the number is 5; false otherwise |
String |
toString() |
static POS |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static POS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final POS NOUN
public static final POS VERB
public static final POS ADJECTIVE
public static final POS ADVERB
public static final int NUM_NOUN
public static final int NUM_VERB
public static final int NUM_ADJECTIVE
public static final int NUM_ADVERB
public static final int NUM_ADJECTIVE_SATELLITE
public static final char TAG_NOUN
public static final char TAG_VERB
public static final char TAG_ADJECTIVE
public static final char TAG_ADVERB
public static final char TAG_ADJECTIVE_SATELLITE
public static POS[] values()
for (POS c : POS.values()) System.out.println(c);
public static POS valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Set<String> getResourceNameHints()
public char getTag()
public int getNumber()
public static boolean isAdjectiveSatellite(int num)
true if the specified number represents an adjective
satellite, namely, if the number is 5; false otherwisenum - the number to be checkedtrue if the specified number represents an adjective
satellite, namely, if the number is 5; false otherwisepublic static boolean isAdjectiveSatellite(char tag)
true if the specified character represents an
adjective satellite, namely, if the number is 's' or 'S';
false otherwisetag - the character to be checkedtrue if the specified number represents an adjective
satellite, namely, if the number is 's' or 'S';
false otherwisepublic static POS getPartOfSpeech(int num)
num - the number for the part of speechnull if none is foundpublic static POS getPartOfSpeech(char tag)
tag - Copyright © 2018. All rights reserved.