Cloud AutoML V1 Client - Class TextSentimentDatasetMetadata (1.6.4)

Reference documentation and code samples for the Cloud AutoML V1 Client class TextSentimentDatasetMetadata.

Dataset metadata for text sentiment.

Generated from protobuf message google.cloud.automl.v1.TextSentimentDatasetMetadata

Namespace

Google \ Cloud \ AutoMl \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ sentiment_max int

Required. A sentiment is expressed as an integer ordinal, where higher value means a more positive sentiment. The range of sentiments that will be used is between 0 and sentiment_max (inclusive on both ends), and all the values in the range must be represented in the dataset before a model can be created. sentiment_max value must be between 1 and 10 (inclusive).

getSentimentMax

Required. A sentiment is expressed as an integer ordinal, where higher value means a more positive sentiment. The range of sentiments that will be used is between 0 and sentiment_max (inclusive on both ends), and all the values in the range must be represented in the dataset before a model can be created.

sentiment_max value must be between 1 and 10 (inclusive).

Returns
Type Description
int

setSentimentMax

Required. A sentiment is expressed as an integer ordinal, where higher value means a more positive sentiment. The range of sentiments that will be used is between 0 and sentiment_max (inclusive on both ends), and all the values in the range must be represented in the dataset before a model can be created.

sentiment_max value must be between 1 and 10 (inclusive).

Parameter
Name Description
var int
Returns
Type Description
$this