Interface TextExtractionAnnotationOrBuilder (2.47.0)

public interface TextExtractionAnnotationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAnnotationCase()

public abstract TextExtractionAnnotation.AnnotationCase getAnnotationCase()
Returns
Type Description
TextExtractionAnnotation.AnnotationCase

getScore()

public abstract float getScore()

Output only. A confidence estimate between 0.0 and 1.0. A higher value means greater confidence in correctness of the annotation.

float score = 1;

Returns
Type Description
float

The score.

getTextSegment()

public abstract TextSegment getTextSegment()

An entity annotation will set this, which is the part of the original text to which the annotation pertains.

.google.cloud.automl.v1.TextSegment text_segment = 3;

Returns
Type Description
TextSegment

The textSegment.

getTextSegmentOrBuilder()

public abstract TextSegmentOrBuilder getTextSegmentOrBuilder()

An entity annotation will set this, which is the part of the original text to which the annotation pertains.

.google.cloud.automl.v1.TextSegment text_segment = 3;

Returns
Type Description
TextSegmentOrBuilder

hasTextSegment()

public abstract boolean hasTextSegment()

An entity annotation will set this, which is the part of the original text to which the annotation pertains.

.google.cloud.automl.v1.TextSegment text_segment = 3;

Returns
Type Description
boolean

Whether the textSegment field is set.