Reference documentation and code samples for the Cloud AutoML V1 Client class TextSentimentDatasetMetadata.
Dataset metadata for text sentiment.
Generated from protobuf messagegoogle.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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud AutoML V1 Client - Class TextSentimentDatasetMetadata (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-automl/latest/V1.TextSentimentDatasetMetadata)\n- [2.0.4](/php/docs/reference/cloud-automl/2.0.4/V1.TextSentimentDatasetMetadata)\n- [1.6.5](/php/docs/reference/cloud-automl/1.6.5/V1.TextSentimentDatasetMetadata)\n- [1.5.4](/php/docs/reference/cloud-automl/1.5.4/V1.TextSentimentDatasetMetadata)\n- [1.4.17](/php/docs/reference/cloud-automl/1.4.17/V1.TextSentimentDatasetMetadata) \nReference documentation and code samples for the Cloud AutoML V1 Client class TextSentimentDatasetMetadata.\n\nDataset metadata for text sentiment.\n\nGenerated from protobuf message `google.cloud.automl.v1.TextSentimentDatasetMetadata`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AutoMl \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSentimentMax\n\nRequired. A sentiment is expressed as an integer ordinal, where higher value\nmeans a more positive sentiment. The range of sentiments that will be used\nis between 0 and sentiment_max (inclusive on both ends), and all the values\nin the range must be represented in the dataset before a model can be\ncreated.\n\nsentiment_max value must be between 1 and 10 (inclusive).\n\n### setSentimentMax\n\nRequired. A sentiment is expressed as an integer ordinal, where higher value\nmeans a more positive sentiment. The range of sentiments that will be used\nis between 0 and sentiment_max (inclusive on both ends), and all the values\nin the range must be represented in the dataset before a model can be\ncreated.\n\nsentiment_max value must be between 1 and 10 (inclusive)."]]