View Source GoogleApi.DataLabeling.V1beta1.Model.GoogleCloudDatalabelingV1beta1TextClassificationConfig (google_api_data_labeling v0.3.1)

Config for text classification human labeling task.

Attributes

  • allowMultiLabel (type: boolean(), default: nil) - Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one text segment.
  • annotationSpecSet (type: String.t, default: nil) - Required. Annotation spec set resource name.
  • sentimentConfig (type: GoogleApi.DataLabeling.V1beta1.Model.GoogleCloudDatalabelingV1beta1SentimentConfig.t, default: nil) - Optional. Configs for sentiment selection. We deprecate sentiment analysis in data labeling side as it is incompatible with uCAIP.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.DataLabeling.V1beta1.Model.GoogleCloudDatalabelingV1beta1TextClassificationConfig{
    allowMultiLabel: boolean() | nil,
    annotationSpecSet: String.t() | nil,
    sentimentConfig:
      GoogleApi.DataLabeling.V1beta1.Model.GoogleCloudDatalabelingV1beta1SentimentConfig.t()
      | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.