Reference documentation and code samples for the Cloud Natural Language V1 Client class Features.
All available features for sentiment, syntax, and semantic analysis.
Setting each one to true will enable that specific analysis for the input.
Generated from protobuf message google.cloud.language.v1.AnnotateTextRequest.Features
Namespace
Google \ Cloud \ Language \ V1 \ AnnotateTextRequestMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ extract_syntax
bool
Extract syntax information.
↳ extract_entities
bool
Extract entities.
↳ extract_document_sentiment
bool
Extract document-level sentiment.
↳ extract_entity_sentiment
bool
Extract entities and their associated sentiment.
↳ classify_text
bool
Classify the full document into categories.
↳ moderate_text
bool
Moderate the document for harmful and sensitive categories.
↳ classification_model_options
Google\Cloud\Language\V1\ClassificationModelOptions
The model options to use for classification. Defaults to v1 options if not specified. Only used if classify_text
is set to true.
getExtractSyntax
Extract syntax information.
bool
setExtractSyntax
Extract syntax information.
var
bool
$this
getExtractEntities
Extract entities.
bool
setExtractEntities
Extract entities.
var
bool
$this
getExtractDocumentSentiment
Extract document-level sentiment.
bool
setExtractDocumentSentiment
Extract document-level sentiment.
var
bool
$this
getExtractEntitySentiment
Extract entities and their associated sentiment.
bool
setExtractEntitySentiment
Extract entities and their associated sentiment.
var
bool
$this
getClassifyText
Classify the full document into categories.
bool
setClassifyText
Classify the full document into categories.
var
bool
$this
getModerateText
Moderate the document for harmful and sensitive categories.
bool
setModerateText
Moderate the document for harmful and sensitive categories.
var
bool
$this
getClassificationModelOptions
The model options to use for classification. Defaults to v1 options
if not specified. Only used if classify_text
is set to true.
hasClassificationModelOptions
clearClassificationModelOptions
setClassificationModelOptions
The model options to use for classification. Defaults to v1 options
if not specified. Only used if classify_text
is set to true.
$this