Cloud Natural Language V1 Client - Class PartOfSpeech (1.0.1)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Cloud Natural Language V1 Client class PartOfSpeech.
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.pdf
Generated from protobuf message google.cloud.language.v1.PartOfSpeech
Namespace
Google \ Cloud \ Language \ V1
Methods
__construct
data
array
Optional. Data for populating the Message object.
↳ tag
int
The part of speech tag.
↳ aspect
int
The grammatical aspect.
↳ case
int
The grammatical case.
↳ form
int
The grammatical form.
↳ gender
int
The grammatical gender.
↳ mood
int
The grammatical mood.
↳ number
int
The grammatical number.
↳ person
int
The grammatical person.
↳ proper
int
The grammatical properness.
↳ reciprocity
int
The grammatical reciprocity.
↳ tense
int
The grammatical tense.
↳ voice
int
The grammatical voice.
getTag
setTag
getAspect
setAspect
getCase
setCase
getGender
setGender
getMood
setMood
getNumber
setNumber
getPerson
setPerson
getProper
The grammatical properness.
setProper
The grammatical properness.
getReciprocity
The grammatical reciprocity.
setReciprocity
The grammatical reciprocity.
getTense
setTense
getVoice
setVoice
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Natural Language V1 Client - Class PartOfSpeech (1.0.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.1 (latest)](/php/docs/reference/cloud-language/latest/V1.PartOfSpeech)\n- [1.0.0](/php/docs/reference/cloud-language/1.0.0/V1.PartOfSpeech)\n- [0.34.3](/php/docs/reference/cloud-language/0.34.3/V1.PartOfSpeech)\n- [0.33.0](/php/docs/reference/cloud-language/0.33.0/V1.PartOfSpeech)\n- [0.32.7](/php/docs/reference/cloud-language/0.32.7/V1.PartOfSpeech)\n- [0.31.3](/php/docs/reference/cloud-language/0.31.3/V1.PartOfSpeech)\n- [0.30.2](/php/docs/reference/cloud-language/0.30.2/V1.PartOfSpeech)\n- [0.29.0](/php/docs/reference/cloud-language/0.29.0/V1.PartOfSpeech)\n- [0.28.5](/php/docs/reference/cloud-language/0.28.5/V1.PartOfSpeech) \nReference documentation and code samples for the Cloud Natural Language V1 Client class PartOfSpeech.\n\nRepresents part of speech information for a token. Parts of speech\nare as defined in\n\u003chttp://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf\u003e\n\nGenerated from protobuf message `google.cloud.language.v1.PartOfSpeech`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Language \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTag\n\nThe part of speech tag.\n\n### setTag\n\nThe part of speech tag.\n\n### getAspect\n\nThe grammatical aspect.\n\n### setAspect\n\nThe grammatical aspect.\n\n### getCase\n\nThe grammatical case.\n\n### setCase\n\nThe grammatical case.\n\n### getForm\n\nThe grammatical form.\n\n### setForm\n\nThe grammatical form.\n\n### getGender\n\nThe grammatical gender.\n\n### setGender\n\nThe grammatical gender.\n\n### getMood\n\nThe grammatical mood.\n\n### setMood\n\nThe grammatical mood.\n\n### getNumber\n\nThe grammatical number.\n\n### setNumber\n\nThe grammatical number.\n\n### getPerson\n\nThe grammatical person.\n\n### setPerson\n\nThe grammatical person.\n\n### getProper\n\nThe grammatical properness.\n\n### setProper\n\nThe grammatical properness.\n\n### getReciprocity\n\nThe grammatical reciprocity.\n\n### setReciprocity\n\nThe grammatical reciprocity.\n\n### getTense\n\nThe grammatical tense.\n\n### setTense\n\nThe grammatical tense.\n\n### getVoice\n\nThe grammatical voice.\n\n### setVoice\n\nThe grammatical voice."]]