public static enum PartOfSpeech.Tag extends java.lang.Enum<PartOfSpeech.Tag> implements com.google.protobuf.ProtocolMessageEnum
The part of speech tags enum.Protobuf enum
google.cloud.language.v1.PartOfSpeech.Tag| Enum Constant and Description |
|---|
ADJ
Adjective
|
ADP
Adposition (preposition and postposition)
|
ADV
Adverb
|
AFFIX
Affix
|
CONJ
Conjunction
|
DET
Determiner
|
NOUN
Noun (common and proper)
|
NUM
Cardinal number
|
PRON
Pronoun
|
PRT
Particle or other function word
|
PUNCT
Punctuation
|
UNKNOWN
Unknown
|
UNRECOGNIZED |
VERB
Verb (all tenses and modes)
|
X
Other: foreign words, typos, abbreviations
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ADJ_VALUE
Adjective
|
static int |
ADP_VALUE
Adposition (preposition and postposition)
|
static int |
ADV_VALUE
Adverb
|
static int |
AFFIX_VALUE
Affix
|
static int |
CONJ_VALUE
Conjunction
|
static int |
DET_VALUE
Determiner
|
static int |
NOUN_VALUE
Noun (common and proper)
|
static int |
NUM_VALUE
Cardinal number
|
static int |
PRON_VALUE
Pronoun
|
static int |
PRT_VALUE
Particle or other function word
|
static int |
PUNCT_VALUE
Punctuation
|
static int |
UNKNOWN_VALUE
Unknown
|
static int |
VERB_VALUE
Verb (all tenses and modes)
|
static int |
X_VALUE
Other: foreign words, typos, abbreviations
|
| Modifier and Type | Method and Description |
|---|---|
static PartOfSpeech.Tag |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<PartOfSpeech.Tag> |
internalGetValueMap() |
static PartOfSpeech.Tag |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static PartOfSpeech.Tag |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static PartOfSpeech.Tag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PartOfSpeech.Tag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PartOfSpeech.Tag UNKNOWN
Unknown
UNKNOWN = 0;public static final PartOfSpeech.Tag ADJ
Adjective
ADJ = 1;public static final PartOfSpeech.Tag ADP
Adposition (preposition and postposition)
ADP = 2;public static final PartOfSpeech.Tag ADV
Adverb
ADV = 3;public static final PartOfSpeech.Tag CONJ
Conjunction
CONJ = 4;public static final PartOfSpeech.Tag DET
Determiner
DET = 5;public static final PartOfSpeech.Tag NOUN
Noun (common and proper)
NOUN = 6;public static final PartOfSpeech.Tag NUM
Cardinal number
NUM = 7;public static final PartOfSpeech.Tag PRON
Pronoun
PRON = 8;public static final PartOfSpeech.Tag PRT
Particle or other function word
PRT = 9;public static final PartOfSpeech.Tag PUNCT
Punctuation
PUNCT = 10;public static final PartOfSpeech.Tag VERB
Verb (all tenses and modes)
VERB = 11;public static final PartOfSpeech.Tag X
Other: foreign words, typos, abbreviations
X = 12;public static final PartOfSpeech.Tag AFFIX
Affix
AFFIX = 13;public static final PartOfSpeech.Tag UNRECOGNIZED
public static final int UNKNOWN_VALUE
Unknown
UNKNOWN = 0;public static final int ADJ_VALUE
Adjective
ADJ = 1;public static final int ADP_VALUE
Adposition (preposition and postposition)
ADP = 2;public static final int ADV_VALUE
Adverb
ADV = 3;public static final int CONJ_VALUE
Conjunction
CONJ = 4;public static final int DET_VALUE
Determiner
DET = 5;public static final int NOUN_VALUE
Noun (common and proper)
NOUN = 6;public static final int NUM_VALUE
Cardinal number
NUM = 7;public static final int PRON_VALUE
Pronoun
PRON = 8;public static final int PRT_VALUE
Particle or other function word
PRT = 9;public static final int PUNCT_VALUE
Punctuation
PUNCT = 10;public static final int VERB_VALUE
Verb (all tenses and modes)
VERB = 11;public static final int X_VALUE
Other: foreign words, typos, abbreviations
X = 12;public static final int AFFIX_VALUE
Affix
AFFIX = 13;public static PartOfSpeech.Tag[] values()
for (PartOfSpeech.Tag c : PartOfSpeech.Tag.values()) System.out.println(c);
public static PartOfSpeech.Tag 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 namejava.lang.NullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static PartOfSpeech.Tag valueOf(int value)
forNumber(int) instead.public static PartOfSpeech.Tag forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<PartOfSpeech.Tag> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static PartOfSpeech.Tag valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)