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 \ AnnotateTextRequestMethods
__construct
Constructor.
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.
bool
setExtractEntities
Optional. Extract entities.
var
bool
$this
getExtractDocumentSentiment
Optional. Extract document-level sentiment.
bool
setExtractDocumentSentiment
Optional. Extract document-level sentiment.
var
bool
$this
getClassifyText
Optional. Classify the full document into categories.
bool
setClassifyText
Optional. Classify the full document into categories.
var
bool
$this
getModerateText
Optional. Moderate the document for harmful and sensitive categories.
bool
setModerateText
Optional. Moderate the document for harmful and sensitive categories.
var
bool
$this