Reference documentation and code samples for the Cloud AutoML V1 API class Google::Cloud::AutoML::V1::TextSentimentDatasetMetadata.
Dataset metadata for text sentiment.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#sentiment_max
defsentiment_max()->::Integer
Returns
(::Integer) — 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).
#sentiment_max=
defsentiment_max=(value)->::Integer
Parameter
value (::Integer) — 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
(::Integer) — 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-08-28 UTC."],[],[],null,["# Cloud AutoML V1 API - Class Google::Cloud::AutoML::V1::TextSentimentDatasetMetadata (v1.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.1 (latest)](/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-TextSentimentDatasetMetadata)\n- [1.3.0](/ruby/docs/reference/google-cloud-automl-v1/1.3.0/Google-Cloud-AutoML-V1-TextSentimentDatasetMetadata)\n- [1.2.1](/ruby/docs/reference/google-cloud-automl-v1/1.2.1/Google-Cloud-AutoML-V1-TextSentimentDatasetMetadata)\n- [1.1.0](/ruby/docs/reference/google-cloud-automl-v1/1.1.0/Google-Cloud-AutoML-V1-TextSentimentDatasetMetadata)\n- [1.0.1](/ruby/docs/reference/google-cloud-automl-v1/1.0.1/Google-Cloud-AutoML-V1-TextSentimentDatasetMetadata)\n- [0.10.0](/ruby/docs/reference/google-cloud-automl-v1/0.10.0/Google-Cloud-AutoML-V1-TextSentimentDatasetMetadata)\n- [0.9.2](/ruby/docs/reference/google-cloud-automl-v1/0.9.2/Google-Cloud-AutoML-V1-TextSentimentDatasetMetadata)\n- [0.8.0](/ruby/docs/reference/google-cloud-automl-v1/0.8.0/Google-Cloud-AutoML-V1-TextSentimentDatasetMetadata)\n- [0.7.0](/ruby/docs/reference/google-cloud-automl-v1/0.7.0/Google-Cloud-AutoML-V1-TextSentimentDatasetMetadata)\n- [0.6.0](/ruby/docs/reference/google-cloud-automl-v1/0.6.0/Google-Cloud-AutoML-V1-TextSentimentDatasetMetadata)\n- [0.5.1](/ruby/docs/reference/google-cloud-automl-v1/0.5.1/Google-Cloud-AutoML-V1-TextSentimentDatasetMetadata)\n- [0.4.8](/ruby/docs/reference/google-cloud-automl-v1/0.4.8/Google-Cloud-AutoML-V1-TextSentimentDatasetMetadata) \nReference documentation and code samples for the Cloud AutoML V1 API class Google::Cloud::AutoML::V1::TextSentimentDatasetMetadata.\n\nDataset metadata for text sentiment. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #sentiment_max\n\n def sentiment_max() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- 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).\n\n### #sentiment_max=\n\n def sentiment_max=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- 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). \n**Returns**\n\n- (::Integer) --- 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)."]]