Google Cloud Datalabeling V1beta1 Client - Class TextEntityExtractionAnnotation (0.4.2)

Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class TextEntityExtractionAnnotation.

Text entity extraction annotation.

Generated from protobuf message google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation

Namespace

Google \ Cloud \ DataLabeling \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ annotation_spec Google\Cloud\DataLabeling\V1beta1\AnnotationSpec

Label of the text entities.

↳ sequential_segment Google\Cloud\DataLabeling\V1beta1\SequentialSegment

Position of the entity.

getAnnotationSpec

Label of the text entities.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\AnnotationSpec|null

hasAnnotationSpec

clearAnnotationSpec

setAnnotationSpec

Label of the text entities.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\AnnotationSpec
Returns
TypeDescription
$this

getSequentialSegment

Position of the entity.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\SequentialSegment|null

hasSequentialSegment

clearSequentialSegment

setSequentialSegment

Position of the entity.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\SequentialSegment
Returns
TypeDescription
$this