Reference documentation and code samples for the AI Platform Data Labeling Service V1beta1 API class Google::Cloud::DataLabeling::V1beta1::LabelTextRequest.
Request message for LabelText.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#basic_config
def basic_config() -> ::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig
Returns
- (::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig) — Required. Basic human annotation config.
#basic_config=
def basic_config=(value) -> ::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig
Parameter
- value (::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig) — Required. Basic human annotation config.
Returns
- (::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig) — Required. Basic human annotation config.
#feature
def feature() -> ::Google::Cloud::DataLabeling::V1beta1::LabelTextRequest::Feature
Returns
- (::Google::Cloud::DataLabeling::V1beta1::LabelTextRequest::Feature) — Required. The type of text labeling task.
#feature=
def feature=(value) -> ::Google::Cloud::DataLabeling::V1beta1::LabelTextRequest::Feature
Parameter
- value (::Google::Cloud::DataLabeling::V1beta1::LabelTextRequest::Feature) — Required. The type of text labeling task.
Returns
- (::Google::Cloud::DataLabeling::V1beta1::LabelTextRequest::Feature) — Required. The type of text labeling task.
#parent
def parent() -> ::String
Returns
- (::String) — Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}
#parent=
def parent=(value) -> ::String
Parameter
- value (::String) — Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}
Returns
- (::String) — Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}
#text_classification_config
def text_classification_config() -> ::Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig
Returns
- (::Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig) — Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.
#text_classification_config=
def text_classification_config=(value) -> ::Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig
Parameter
- value (::Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig) — Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.
Returns
- (::Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig) — Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.
#text_entity_extraction_config
def text_entity_extraction_config() -> ::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig
Returns
- (::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig) — Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.
#text_entity_extraction_config=
def text_entity_extraction_config=(value) -> ::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig
Parameter
- value (::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig) — Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.
Returns
- (::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig) — Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.