Package com.google.cloud.language.v1
Enum PartOfSpeech.Tag
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<PartOfSpeech.Tag>
- Enclosing class:
- PartOfSpeech
public static enum PartOfSpeech.Tag
extends Enum<PartOfSpeech.Tag>
implements com.google.protobuf.ProtocolMessageEnum
The part of speech tags enum.Protobuf enum
google.cloud.language.v1.PartOfSpeech.Tag-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdjectiveAdposition (preposition and postposition)AdverbAffixConjunctionDeterminerNoun (common and proper)Cardinal numberPronounParticle or other function wordPunctuationUnknownVerb (all tenses and modes)Other: foreign words, typos, abbreviations -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAdjectivestatic final intAdposition (preposition and postposition)static final intAdverbstatic final intAffixstatic final intConjunctionstatic final intDeterminerstatic final intNoun (common and proper)static final intCardinal numberstatic final intPronounstatic final intParticle or other function wordstatic final intPunctuationstatic final intUnknownstatic final intVerb (all tenses and modes)static final intOther: foreign words, typos, abbreviations -
Method Summary
Modifier and TypeMethodDescriptionstatic PartOfSpeech.TagforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<PartOfSpeech.Tag>static PartOfSpeech.TagvalueOf(int value) Deprecated.static PartOfSpeech.TagvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static PartOfSpeech.TagReturns 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.
-
Enum Constant Details
-
UNKNOWN
Unknown
UNKNOWN = 0; -
ADJ
Adjective
ADJ = 1; -
ADP
Adposition (preposition and postposition)
ADP = 2; -
ADV
Adverb
ADV = 3; -
CONJ
Conjunction
CONJ = 4; -
DET
Determiner
DET = 5; -
NOUN
Noun (common and proper)
NOUN = 6; -
NUM
Cardinal number
NUM = 7; -
PRON
Pronoun
PRON = 8; -
PRT
Particle or other function word
PRT = 9; -
PUNCT
Punctuation
PUNCT = 10; -
VERB
Verb (all tenses and modes)
VERB = 11; -
X
Other: foreign words, typos, abbreviations
X = 12; -
AFFIX
Affix
AFFIX = 13; -
UNRECOGNIZED
-
-
Field Details
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEUnknown
UNKNOWN = 0;- See Also:
-
ADJ_VALUE
public static final int ADJ_VALUEAdjective
ADJ = 1;- See Also:
-
ADP_VALUE
public static final int ADP_VALUEAdposition (preposition and postposition)
ADP = 2;- See Also:
-
ADV_VALUE
public static final int ADV_VALUEAdverb
ADV = 3;- See Also:
-
CONJ_VALUE
public static final int CONJ_VALUEConjunction
CONJ = 4;- See Also:
-
DET_VALUE
public static final int DET_VALUEDeterminer
DET = 5;- See Also:
-
NOUN_VALUE
public static final int NOUN_VALUENoun (common and proper)
NOUN = 6;- See Also:
-
NUM_VALUE
public static final int NUM_VALUECardinal number
NUM = 7;- See Also:
-
PRON_VALUE
public static final int PRON_VALUEPronoun
PRON = 8;- See Also:
-
PRT_VALUE
public static final int PRT_VALUEParticle or other function word
PRT = 9;- See Also:
-
PUNCT_VALUE
public static final int PUNCT_VALUEPunctuation
PUNCT = 10;- See Also:
-
VERB_VALUE
public static final int VERB_VALUEVerb (all tenses and modes)
VERB = 11;- See Also:
-
X_VALUE
public static final int X_VALUEOther: foreign words, typos, abbreviations
X = 12;- See Also:
-
AFFIX_VALUE
public static final int AFFIX_VALUEAffix
AFFIX = 13;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-