class ProjectsDatasetsText extends Resource (View source)

The "text" collection of methods.

Typical usage is:

 $datalabelingService = new Google\Service\DataLabeling(...);
 $text = $datalabelingService->projects_datasets_text;

Methods

label(string $parent, GoogleCloudDatalabelingV1beta1LabelTextRequest $postBody, array $optParams = [])

Starts a labeling task for text. The type of text labeling task is configured by feature in the request. (text.label)

Details

GoogleLongrunningOperation label(string $parent, GoogleCloudDatalabelingV1beta1LabelTextRequest $postBody, array $optParams = [])

Starts a labeling task for text. The type of text labeling task is configured by feature in the request. (text.label)

Parameters

string $parent

Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

GoogleCloudDatalabelingV1beta1LabelTextRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception