Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class LabelTextRequest.
Request message for LabelText.
Generated from protobuf message google.cloud.datalabeling.v1beta1.LabelTextRequest
Namespace
Google \ Cloud \ DataLabeling \ V1beta1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ text_classification_config
TextClassificationConfig
Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.
↳ text_entity_extraction_config
TextEntityExtractionConfig
Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.
↳ parent
string
Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}
↳ basic_config
↳ feature
int
Required. The type of text labeling task.
getTextClassificationConfig
Configuration for text classification task.
One of text_classification_config and text_entity_extraction_config is required.
hasTextClassificationConfig
setTextClassificationConfig
Configuration for text classification task.
One of text_classification_config and text_entity_extraction_config is required.
$this
getTextEntityExtractionConfig
Configuration for entity extraction task.
One of text_classification_config and text_entity_extraction_config is required.
hasTextEntityExtractionConfig
setTextEntityExtractionConfig
Configuration for entity extraction task.
One of text_classification_config and text_entity_extraction_config is required.
$this
getParent
Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}
string
setParent
Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}
var
string
$this
getBasicConfig
Required. Basic human annotation config.
hasBasicConfig
clearBasicConfig
setBasicConfig
Required. Basic human annotation config.
$this
getFeature
Required. The type of text labeling task.
int
setFeature
Required. The type of text labeling task.
var
int
$this
getRequestConfig
string
static::build
parent
string
Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id} Please see DataLabelingServiceClient::datasetName() for help formatting this field.
basicConfig
feature
int
Required. The type of text labeling task. For allowed values, use constants defined on LabelTextRequest\Feature