Enum PartOfSpeech.Tag (2.45.0)

public enum PartOfSpeech.Tag extends Enum<PartOfSpeech.Tag> implements ProtocolMessageEnum

The part of speech tags enum.

Protobuf enum google.cloud.language.v1.PartOfSpeech.Tag

Implements

ProtocolMessageEnum

Static Fields

Name Description
ADJ

Adjective

ADJ = 1;

ADJ_VALUE

Adjective

ADJ = 1;

ADP

Adposition (preposition and postposition)

ADP = 2;

ADP_VALUE

Adposition (preposition and postposition)

ADP = 2;

ADV

Adverb

ADV = 3;

ADV_VALUE

Adverb

ADV = 3;

AFFIX

Affix

AFFIX = 13;

AFFIX_VALUE

Affix

AFFIX = 13;

CONJ

Conjunction

CONJ = 4;

CONJ_VALUE

Conjunction

CONJ = 4;

DET

Determiner

DET = 5;

DET_VALUE

Determiner

DET = 5;

NOUN

Noun (common and proper)

NOUN = 6;

NOUN_VALUE

Noun (common and proper)

NOUN = 6;

NUM

Cardinal number

NUM = 7;

NUM_VALUE

Cardinal number

NUM = 7;

PRON

Pronoun

PRON = 8;

PRON_VALUE

Pronoun

PRON = 8;

PRT

Particle or other function word

PRT = 9;

PRT_VALUE

Particle or other function word

PRT = 9;

PUNCT

Punctuation

PUNCT = 10;

PUNCT_VALUE

Punctuation

PUNCT = 10;

UNKNOWN

Unknown

UNKNOWN = 0;

UNKNOWN_VALUE

Unknown

UNKNOWN = 0;

UNRECOGNIZED
VERB

Verb (all tenses and modes)

VERB = 11;

VERB_VALUE

Verb (all tenses and modes)

VERB = 11;

X

Other: foreign words, typos, abbreviations

X = 12;

X_VALUE

Other: foreign words, typos, abbreviations

X = 12;

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()