# AI Platform Data Labeling Service V1beta1 API - Class Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig (v0.15.0)

0.15.0 (latest) 0.14.0 0.13.1 0.12.0 0.11.1 0.10.1 0.9.0 0.8.1 0.7.2 0.6.0 0.5.0 0.4.0 0.3.5 Reference documentation and code samples for the AI Platform Data Labeling Service V1beta1 API class Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig.

Config for text classification human labeling task.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #allow_multi_label

    def allow_multi_label() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one text segment.

### #allow_multi_label=

    def allow_multi_label=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one text segment.
**Returns**

- (::Boolean) --- Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one text segment.

### #annotation_spec_set

    def annotation_spec_set() -> ::String

**Returns**

- (::String) --- Required. Annotation spec set resource name.

### #annotation_spec_set=

    def annotation_spec_set=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Annotation spec set resource name.
**Returns**

- (::String) --- Required. Annotation spec set resource name.

### #sentiment_config

    def sentiment_config() -> ::Google::Cloud::DataLabeling::V1beta1::SentimentConfig

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::SentimentConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-SentimentConfig)) --- Optional. Configs for sentiment selection.

### #sentiment_config=

    def sentiment_config=(value) -> ::Google::Cloud::DataLabeling::V1beta1::SentimentConfig

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::SentimentConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-SentimentConfig)) --- Optional. Configs for sentiment selection.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::SentimentConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-SentimentConfig)) --- Optional. Configs for sentiment selection.