|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<POS> edu.mit.jwi.item.POS
public enum POS
Represents part of speech objects.
Enum Constant Summary | |
---|---|
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. |
Field Summary | |
---|---|
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
|
Method Summary | |
---|---|
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. |
java.util.Set<java.lang.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 |
java.lang.String |
toString()
|
static POS |
valueOf(java.lang.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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final POS NOUN
public static final POS VERB
public static final POS ADJECTIVE
public static final POS ADVERB
Field Detail |
---|
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
Method Detail |
---|
public static final POS[] values()
for(POS c : POS.values()) System.out.println(c);
public static POS valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic java.util.Set<java.lang.String> getResourceNameHints()
public char getTag()
public int getNumber()
public java.lang.String toString()
toString
in class java.lang.Enum<POS>
public static boolean isAdjectiveSatellite(int num)
true
if the specified number represents an adjective
satellite, namely, if the number is 5; false
otherwise
num
- the number to be checked
true
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
otherwise
tag
- the character to be checked
true
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 speech
null
if none is foundpublic static POS getPartOfSpeech(char tag)
tag
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |