Interface TextExtractionAnnotationOrBuilder (2.17.0)

public interface TextExtractionAnnotationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAnnotationCase()

public abstract TextExtractionAnnotation.AnnotationCase getAnnotationCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the textSegment field is set.