Class: Google::Cloud::DataLabeling::V1beta1::LabelTextRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb

Overview

Request message for LabelText.

Defined Under Namespace

Modules: Feature

Instance Attribute Summary collapse

Instance Attribute Details

#basic_config::Google::Cloud::DataLabeling::V1beta1::HumanAnnotationConfig

Returns Required. Basic human annotation config.

Returns:



398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
# File 'proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb', line 398

class LabelTextRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Text labeling task feature.
  module Feature
    FEATURE_UNSPECIFIED = 0

    # Label text content to one of more labels.
    TEXT_CLASSIFICATION = 1

    # Label entities and their span in text.
    TEXT_ENTITY_EXTRACTION = 2
  end
end

#feature::Google::Cloud::DataLabeling::V1beta1::LabelTextRequest::Feature

Returns Required. The type of text labeling task.

Returns:



398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
# File 'proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb', line 398

class LabelTextRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Text labeling task feature.
  module Feature
    FEATURE_UNSPECIFIED = 0

    # Label text content to one of more labels.
    TEXT_CLASSIFICATION = 1

    # Label entities and their span in text.
    TEXT_ENTITY_EXTRACTION = 2
  end
end

#parent::String

Returns 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}



398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
# File 'proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb', line 398

class LabelTextRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Text labeling task feature.
  module Feature
    FEATURE_UNSPECIFIED = 0

    # Label text content to one of more labels.
    TEXT_CLASSIFICATION = 1

    # Label entities and their span in text.
    TEXT_ENTITY_EXTRACTION = 2
  end
end

#text_classification_config::Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig

Returns Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.

Note: The following fields are mutually exclusive: text_classification_config, text_entity_extraction_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::DataLabeling::V1beta1::TextClassificationConfig)

    Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.

    Note: The following fields are mutually exclusive: text_classification_config, text_entity_extraction_config. If a field in that set is populated, all other fields in the set will automatically be cleared.



398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
# File 'proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb', line 398

class LabelTextRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Text labeling task feature.
  module Feature
    FEATURE_UNSPECIFIED = 0

    # Label text content to one of more labels.
    TEXT_CLASSIFICATION = 1

    # Label entities and their span in text.
    TEXT_ENTITY_EXTRACTION = 2
  end
end

#text_entity_extraction_config::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig

Returns Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.

Note: The following fields are mutually exclusive: text_entity_extraction_config, text_classification_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionConfig)

    Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.

    Note: The following fields are mutually exclusive: text_entity_extraction_config, text_classification_config. If a field in that set is populated, all other fields in the set will automatically be cleared.



398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
# File 'proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb', line 398

class LabelTextRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Text labeling task feature.
  module Feature
    FEATURE_UNSPECIFIED = 0

    # Label text content to one of more labels.
    TEXT_CLASSIFICATION = 1

    # Label entities and their span in text.
    TEXT_ENTITY_EXTRACTION = 2
  end
end