Cloud Natural Language V2 Client - Class Features (0.33.0)

Reference documentation and code samples for the Cloud Natural Language V2 Client class Features.

All available features.

Setting each one to true will enable that specific analysis for the input.

Generated from protobuf message google.cloud.language.v2.AnnotateTextRequest.Features

Namespace

Google \ Cloud \ Language \ V2 \ AnnotateTextRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ extract_entities bool

Optional. Extract entities.

↳ extract_document_sentiment bool

Optional. Extract document-level sentiment.

↳ classify_text bool

Optional. Classify the full document into categories.

↳ moderate_text bool

Optional. Moderate the document for harmful and sensitive categories.

getExtractEntities

Optional. Extract entities.

Returns
Type Description
bool

setExtractEntities

Optional. Extract entities.

Parameter
Name Description
var bool
Returns
Type Description
$this

getExtractDocumentSentiment

Optional. Extract document-level sentiment.

Returns
Type Description
bool

setExtractDocumentSentiment

Optional. Extract document-level sentiment.

Parameter
Name Description
var bool
Returns
Type Description
$this

getClassifyText

Optional. Classify the full document into categories.

Returns
Type Description
bool

setClassifyText

Optional. Classify the full document into categories.

Parameter
Name Description
var bool
Returns
Type Description
$this

getModerateText

Optional. Moderate the document for harmful and sensitive categories.

Returns
Type Description
bool

setModerateText

Optional. Moderate the document for harmful and sensitive categories.

Parameter
Name Description
var bool
Returns
Type Description
$this