public final class PartOfSpeech extends com.google.protobuf.GeneratedMessageV3 implements PartOfSpeechOrBuilder
Represents part of speech information for a token. Parts of speech are as defined in http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdfProtobuf type
google.cloud.language.v1.PartOfSpeech| Modifier and Type | Class and Description |
|---|---|
static class |
PartOfSpeech.Aspect
The characteristic of a verb that expresses time flow during an event.
|
static class |
PartOfSpeech.Builder
Represents part of speech information for a token.
|
static class |
PartOfSpeech.Case
The grammatical function performed by a noun or pronoun in a phrase,
clause, or sentence.
|
static class |
PartOfSpeech.Form
Depending on the language, Form can be categorizing different forms of
verbs, adjectives, adverbs, etc.
|
static class |
PartOfSpeech.Gender
Gender classes of nouns reflected in the behaviour of associated words.
|
static class |
PartOfSpeech.Mood
The grammatical feature of verbs, used for showing modality and attitude.
|
static class |
PartOfSpeech.Number
Count distinctions.
|
static class |
PartOfSpeech.Person
The distinction between the speaker, second person, third person, etc.
|
static class |
PartOfSpeech.Proper
This category shows if the token is part of a proper name.
|
static class |
PartOfSpeech.Reciprocity
Reciprocal features of a pronoun.
|
static class |
PartOfSpeech.Tag
The part of speech tags enum.
|
static class |
PartOfSpeech.Tense
Time reference.
|
static class |
PartOfSpeech.Voice
The relationship between the action that a verb expresses and the
participants identified by its arguments.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ASPECT_FIELD_NUMBER |
static int |
CASE_FIELD_NUMBER |
static int |
FORM_FIELD_NUMBER |
static int |
GENDER_FIELD_NUMBER |
static int |
MOOD_FIELD_NUMBER |
static int |
NUMBER_FIELD_NUMBER |
static int |
PERSON_FIELD_NUMBER |
static int |
PROPER_FIELD_NUMBER |
static int |
RECIPROCITY_FIELD_NUMBER |
static int |
TAG_FIELD_NUMBER |
static int |
TENSE_FIELD_NUMBER |
static int |
VOICE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
PartOfSpeech.Aspect |
getAspect()
The grammatical aspect.
|
int |
getAspectValue()
The grammatical aspect.
|
PartOfSpeech.Case |
getCase()
The grammatical case.
|
int |
getCaseValue()
The grammatical case.
|
static PartOfSpeech |
getDefaultInstance() |
PartOfSpeech |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
PartOfSpeech.Form |
getForm()
The grammatical form.
|
int |
getFormValue()
The grammatical form.
|
PartOfSpeech.Gender |
getGender()
The grammatical gender.
|
int |
getGenderValue()
The grammatical gender.
|
PartOfSpeech.Mood |
getMood()
The grammatical mood.
|
int |
getMoodValue()
The grammatical mood.
|
PartOfSpeech.Number |
getNumber()
The grammatical number.
|
int |
getNumberValue()
The grammatical number.
|
com.google.protobuf.Parser<PartOfSpeech> |
getParserForType() |
PartOfSpeech.Person |
getPerson()
The grammatical person.
|
int |
getPersonValue()
The grammatical person.
|
PartOfSpeech.Proper |
getProper()
The grammatical properness.
|
int |
getProperValue()
The grammatical properness.
|
PartOfSpeech.Reciprocity |
getReciprocity()
The grammatical reciprocity.
|
int |
getReciprocityValue()
The grammatical reciprocity.
|
int |
getSerializedSize() |
PartOfSpeech.Tag |
getTag()
The part of speech tag.
|
int |
getTagValue()
The part of speech tag.
|
PartOfSpeech.Tense |
getTense()
The grammatical tense.
|
int |
getTenseValue()
The grammatical tense.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
PartOfSpeech.Voice |
getVoice()
The grammatical voice.
|
int |
getVoiceValue()
The grammatical voice.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static PartOfSpeech.Builder |
newBuilder() |
static PartOfSpeech.Builder |
newBuilder(PartOfSpeech prototype) |
PartOfSpeech.Builder |
newBuilderForType() |
protected PartOfSpeech.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static PartOfSpeech |
parseDelimitedFrom(java.io.InputStream input) |
static PartOfSpeech |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PartOfSpeech |
parseFrom(byte[] data) |
static PartOfSpeech |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PartOfSpeech |
parseFrom(java.nio.ByteBuffer data) |
static PartOfSpeech |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PartOfSpeech |
parseFrom(com.google.protobuf.ByteString data) |
static PartOfSpeech |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PartOfSpeech |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PartOfSpeech |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PartOfSpeech |
parseFrom(java.io.InputStream input) |
static PartOfSpeech |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<PartOfSpeech> |
parser() |
PartOfSpeech.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TAG_FIELD_NUMBER
public static final int ASPECT_FIELD_NUMBER
public static final int CASE_FIELD_NUMBER
public static final int FORM_FIELD_NUMBER
public static final int GENDER_FIELD_NUMBER
public static final int MOOD_FIELD_NUMBER
public static final int NUMBER_FIELD_NUMBER
public static final int PERSON_FIELD_NUMBER
public static final int PROPER_FIELD_NUMBER
public static final int RECIPROCITY_FIELD_NUMBER
public static final int TENSE_FIELD_NUMBER
public static final int VOICE_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getTagValue()
The part of speech tag.
.google.cloud.language.v1.PartOfSpeech.Tag tag = 1;getTagValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Tag getTag()
The part of speech tag.
.google.cloud.language.v1.PartOfSpeech.Tag tag = 1;getTag in interface PartOfSpeechOrBuilderpublic int getAspectValue()
The grammatical aspect.
.google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;getAspectValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Aspect getAspect()
The grammatical aspect.
.google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;getAspect in interface PartOfSpeechOrBuilderpublic int getCaseValue()
The grammatical case.
.google.cloud.language.v1.PartOfSpeech.Case case = 3;getCaseValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Case getCase()
The grammatical case.
.google.cloud.language.v1.PartOfSpeech.Case case = 3;getCase in interface PartOfSpeechOrBuilderpublic int getFormValue()
The grammatical form.
.google.cloud.language.v1.PartOfSpeech.Form form = 4;getFormValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Form getForm()
The grammatical form.
.google.cloud.language.v1.PartOfSpeech.Form form = 4;getForm in interface PartOfSpeechOrBuilderpublic int getGenderValue()
The grammatical gender.
.google.cloud.language.v1.PartOfSpeech.Gender gender = 5;getGenderValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Gender getGender()
The grammatical gender.
.google.cloud.language.v1.PartOfSpeech.Gender gender = 5;getGender in interface PartOfSpeechOrBuilderpublic int getMoodValue()
The grammatical mood.
.google.cloud.language.v1.PartOfSpeech.Mood mood = 6;getMoodValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Mood getMood()
The grammatical mood.
.google.cloud.language.v1.PartOfSpeech.Mood mood = 6;getMood in interface PartOfSpeechOrBuilderpublic int getNumberValue()
The grammatical number.
.google.cloud.language.v1.PartOfSpeech.Number number = 7;getNumberValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Number getNumber()
The grammatical number.
.google.cloud.language.v1.PartOfSpeech.Number number = 7;getNumber in interface PartOfSpeechOrBuilderpublic int getPersonValue()
The grammatical person.
.google.cloud.language.v1.PartOfSpeech.Person person = 8;getPersonValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Person getPerson()
The grammatical person.
.google.cloud.language.v1.PartOfSpeech.Person person = 8;getPerson in interface PartOfSpeechOrBuilderpublic int getProperValue()
The grammatical properness.
.google.cloud.language.v1.PartOfSpeech.Proper proper = 9;getProperValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Proper getProper()
The grammatical properness.
.google.cloud.language.v1.PartOfSpeech.Proper proper = 9;getProper in interface PartOfSpeechOrBuilderpublic int getReciprocityValue()
The grammatical reciprocity.
.google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;getReciprocityValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Reciprocity getReciprocity()
The grammatical reciprocity.
.google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;getReciprocity in interface PartOfSpeechOrBuilderpublic int getTenseValue()
The grammatical tense.
.google.cloud.language.v1.PartOfSpeech.Tense tense = 11;getTenseValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Tense getTense()
The grammatical tense.
.google.cloud.language.v1.PartOfSpeech.Tense tense = 11;getTense in interface PartOfSpeechOrBuilderpublic int getVoiceValue()
The grammatical voice.
.google.cloud.language.v1.PartOfSpeech.Voice voice = 12;getVoiceValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Voice getVoice()
The grammatical voice.
.google.cloud.language.v1.PartOfSpeech.Voice voice = 12;getVoice in interface PartOfSpeechOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static PartOfSpeech parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PartOfSpeech parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PartOfSpeech parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PartOfSpeech parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PartOfSpeech parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PartOfSpeech parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PartOfSpeech parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PartOfSpeech parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static PartOfSpeech parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PartOfSpeech parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static PartOfSpeech parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PartOfSpeech parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic PartOfSpeech.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static PartOfSpeech.Builder newBuilder()
public static PartOfSpeech.Builder newBuilder(PartOfSpeech prototype)
public PartOfSpeech.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected PartOfSpeech.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static PartOfSpeech getDefaultInstance()
public static com.google.protobuf.Parser<PartOfSpeech> parser()
public com.google.protobuf.Parser<PartOfSpeech> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public PartOfSpeech getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder