Cloud Natural Language V1beta2 Client - Class PartOfSpeech (0.28.5)

Reference documentation and code samples for the Cloud Natural Language V1beta2 Client class PartOfSpeech.

Represents part of speech information for a token.

Generated from protobuf message google.cloud.language.v1beta2.PartOfSpeech

Methods

__construct

Constructor.

Parameters
NameDescription
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

The part of speech tag.

Returns
TypeDescription
int

setTag

The part of speech tag.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAspect

The grammatical aspect.

Returns
TypeDescription
int

setAspect

The grammatical aspect.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCase

The grammatical case.

Returns
TypeDescription
int

setCase

The grammatical case.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getForm

The grammatical form.

Returns
TypeDescription
int

setForm

The grammatical form.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getGender

The grammatical gender.

Returns
TypeDescription
int

setGender

The grammatical gender.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMood

The grammatical mood.

Returns
TypeDescription
int

setMood

The grammatical mood.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getNumber

The grammatical number.

Returns
TypeDescription
int

setNumber

The grammatical number.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPerson

The grammatical person.

Returns
TypeDescription
int

setPerson

The grammatical person.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getProper

The grammatical properness.

Returns
TypeDescription
int

setProper

The grammatical properness.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getReciprocity

The grammatical reciprocity.

Returns
TypeDescription
int

setReciprocity

The grammatical reciprocity.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTense

The grammatical tense.

Returns
TypeDescription
int

setTense

The grammatical tense.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getVoice

The grammatical voice.

Returns
TypeDescription
int

setVoice

The grammatical voice.

Parameter
NameDescription
var int
Returns
TypeDescription
$this