Cloud Natural Language V2 Client - Class Features (0.31.3)

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
NameDescription
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
TypeDescription
bool

setExtractEntities

Optional. Extract entities.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getExtractDocumentSentiment

Optional. Extract document-level sentiment.

Returns
TypeDescription
bool

setExtractDocumentSentiment

Optional. Extract document-level sentiment.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getClassifyText

Optional. Classify the full document into categories.

Returns
TypeDescription
bool

setClassifyText

Optional. Classify the full document into categories.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getModerateText

Optional. Moderate the document for harmful and sensitive categories.

Returns
TypeDescription
bool

setModerateText

Optional. Moderate the document for harmful and sensitive categories.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this