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
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ text_classification_config |
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 |
Google\Cloud\DataLabeling\V1beta1\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 |
Google\Cloud\DataLabeling\V1beta1\HumanAnnotationConfig
Required. Basic human annotation 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.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\DataLabeling\V1beta1\TextClassificationConfig|null |
|
hasTextClassificationConfig
setTextClassificationConfig
Configuration for text classification task.
One of text_classification_config and text_entity_extraction_config is required.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\DataLabeling\V1beta1\TextClassificationConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTextEntityExtractionConfig
Configuration for entity extraction task.
One of text_classification_config and text_entity_extraction_config is required.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\DataLabeling\V1beta1\TextEntityExtractionConfig|null |
|
hasTextEntityExtractionConfig
setTextEntityExtractionConfig
Configuration for entity extraction task.
One of text_classification_config and text_entity_extraction_config is required.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\DataLabeling\V1beta1\TextEntityExtractionConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getParent
Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBasicConfig
Required. Basic human annotation config.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\DataLabeling\V1beta1\HumanAnnotationConfig|null |
|
hasBasicConfig
clearBasicConfig
setBasicConfig
Required. Basic human annotation config.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\DataLabeling\V1beta1\HumanAnnotationConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFeature
Required. The type of text labeling task.
| Returns | |
|---|---|
| Type | Description |
int |
|
setFeature
Required. The type of text labeling task.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRequestConfig
| Returns | |
|---|---|
| Type | Description |
string |
|