public final class PartOfSpeech extends 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.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, 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 |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public int getTagValue()
The part of speech tag.
.google.cloud.language.v1.PartOfSpeech.Tag tag = 1;
getTagValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Tag getTag()
The part of speech tag.
.google.cloud.language.v1.PartOfSpeech.Tag tag = 1;
getTag
in interface PartOfSpeechOrBuilder
public int getAspectValue()
The grammatical aspect.
.google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;
getAspectValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Aspect getAspect()
The grammatical aspect.
.google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;
getAspect
in interface PartOfSpeechOrBuilder
public int getCaseValue()
The grammatical case.
.google.cloud.language.v1.PartOfSpeech.Case case = 3;
getCaseValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Case getCase()
The grammatical case.
.google.cloud.language.v1.PartOfSpeech.Case case = 3;
getCase
in interface PartOfSpeechOrBuilder
public int getFormValue()
The grammatical form.
.google.cloud.language.v1.PartOfSpeech.Form form = 4;
getFormValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Form getForm()
The grammatical form.
.google.cloud.language.v1.PartOfSpeech.Form form = 4;
getForm
in interface PartOfSpeechOrBuilder
public int getGenderValue()
The grammatical gender.
.google.cloud.language.v1.PartOfSpeech.Gender gender = 5;
getGenderValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Gender getGender()
The grammatical gender.
.google.cloud.language.v1.PartOfSpeech.Gender gender = 5;
getGender
in interface PartOfSpeechOrBuilder
public int getMoodValue()
The grammatical mood.
.google.cloud.language.v1.PartOfSpeech.Mood mood = 6;
getMoodValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Mood getMood()
The grammatical mood.
.google.cloud.language.v1.PartOfSpeech.Mood mood = 6;
getMood
in interface PartOfSpeechOrBuilder
public int getNumberValue()
The grammatical number.
.google.cloud.language.v1.PartOfSpeech.Number number = 7;
getNumberValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Number getNumber()
The grammatical number.
.google.cloud.language.v1.PartOfSpeech.Number number = 7;
getNumber
in interface PartOfSpeechOrBuilder
public int getPersonValue()
The grammatical person.
.google.cloud.language.v1.PartOfSpeech.Person person = 8;
getPersonValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Person getPerson()
The grammatical person.
.google.cloud.language.v1.PartOfSpeech.Person person = 8;
getPerson
in interface PartOfSpeechOrBuilder
public int getProperValue()
The grammatical properness.
.google.cloud.language.v1.PartOfSpeech.Proper proper = 9;
getProperValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Proper getProper()
The grammatical properness.
.google.cloud.language.v1.PartOfSpeech.Proper proper = 9;
getProper
in interface PartOfSpeechOrBuilder
public int getReciprocityValue()
The grammatical reciprocity.
.google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;
getReciprocityValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Reciprocity getReciprocity()
The grammatical reciprocity.
.google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;
getReciprocity
in interface PartOfSpeechOrBuilder
public int getTenseValue()
The grammatical tense.
.google.cloud.language.v1.PartOfSpeech.Tense tense = 11;
getTenseValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Tense getTense()
The grammatical tense.
.google.cloud.language.v1.PartOfSpeech.Tense tense = 11;
getTense
in interface PartOfSpeechOrBuilder
public int getVoiceValue()
The grammatical voice.
.google.cloud.language.v1.PartOfSpeech.Voice voice = 12;
getVoiceValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Voice getVoice()
The grammatical voice.
.google.cloud.language.v1.PartOfSpeech.Voice voice = 12;
getVoice
in interface PartOfSpeechOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static PartOfSpeech parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PartOfSpeech parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PartOfSpeech parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PartOfSpeech parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PartOfSpeech parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PartOfSpeech parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PartOfSpeech parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static PartOfSpeech parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static PartOfSpeech parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static PartOfSpeech parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static PartOfSpeech parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static PartOfSpeech parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public PartOfSpeech.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static PartOfSpeech.Builder newBuilder()
public static PartOfSpeech.Builder newBuilder(PartOfSpeech prototype)
public PartOfSpeech.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected PartOfSpeech.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static PartOfSpeech getDefaultInstance()
public static Parser<PartOfSpeech> parser()
public Parser<PartOfSpeech> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public PartOfSpeech getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder