Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class SentimentConfig.
Config for setting up sentiments.
Generated from protobuf message google.cloud.datalabeling.v1beta1.SentimentConfig
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ enable_label_sentiment_selection
bool
If set to true, contributors will have the option to select sentiment of the label they selected, to mark it as negative or positive label. Default is false.
getEnableLabelSentimentSelection
If set to true, contributors will have the option to select sentiment of
the label they selected, to mark it as negative or positive label. Default
is false.
Returns
Type
Description
bool
setEnableLabelSentimentSelection
If set to true, contributors will have the option to select sentiment of
the label they selected, to mark it as negative or positive label. Default
is false.
[[["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 2024-12-19 UTC."],[],[]]