Cloud Natural Language V1 Client - Class PartOfSpeech (0.32.4)

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

Constructor.

Parameters
Name Description
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
Type Description
int

setTag

The part of speech tag.

Parameter
Name Description
var int
Returns
Type Description
$this

getAspect

The grammatical aspect.

Returns
Type Description
int

setAspect

The grammatical aspect.

Parameter
Name Description
var int
Returns
Type Description
$this

getCase

The grammatical case.

Returns
Type Description
int

setCase

The grammatical case.

Parameter
Name Description
var int
Returns
Type Description
$this

getForm

The grammatical form.

Returns
Type Description
int

setForm

The grammatical form.

Parameter
Name Description
var int
Returns
Type Description
$this

getGender

The grammatical gender.

Returns
Type Description
int

setGender

The grammatical gender.

Parameter
Name Description
var int
Returns
Type Description
$this

getMood

The grammatical mood.

Returns
Type Description
int

setMood

The grammatical mood.

Parameter
Name Description
var int
Returns
Type Description
$this

getNumber

The grammatical number.

Returns
Type Description
int

setNumber

The grammatical number.

Parameter
Name Description
var int
Returns
Type Description
$this

getPerson

The grammatical person.

Returns
Type Description
int

setPerson

The grammatical person.

Parameter
Name Description
var int
Returns
Type Description
$this

getProper

The grammatical properness.

Returns
Type Description
int

setProper

The grammatical properness.

Parameter
Name Description
var int
Returns
Type Description
$this

getReciprocity

The grammatical reciprocity.

Returns
Type Description
int

setReciprocity

The grammatical reciprocity.

Parameter
Name Description
var int
Returns
Type Description
$this

getTense

The grammatical tense.

Returns
Type Description
int

setTense

The grammatical tense.

Parameter
Name Description
var int
Returns
Type Description
$this

getVoice

The grammatical voice.

Returns
Type Description
int

setVoice

The grammatical voice.

Parameter
Name Description
var int
Returns
Type Description
$this