Interface TextExtractionPredictionResultOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TextExtractionPredictionResult
,TextExtractionPredictionResult.Builder
public interface TextExtractionPredictionResultOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getConfidences(int index)
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence.int
getConfidencesCount()
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence.List<Float>
getConfidencesList()
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence.String
getDisplayNames(int index)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.com.google.protobuf.ByteString
getDisplayNamesBytes(int index)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.int
getDisplayNamesCount()
The display names of the AnnotationSpecs that had been identified, order matches the IDs.List<String>
getDisplayNamesList()
The display names of the AnnotationSpecs that had been identified, order matches the IDs.long
getIds(int index)
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.int
getIdsCount()
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.List<Long>
getIdsList()
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.long
getTextSegmentEndOffsets(int index)
The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified.int
getTextSegmentEndOffsetsCount()
The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified.List<Long>
getTextSegmentEndOffsetsList()
The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified.long
getTextSegmentStartOffsets(int index)
The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified.int
getTextSegmentStartOffsetsCount()
The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified.List<Long>
getTextSegmentStartOffsetsList()
The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getIdsList
List<Long> getIdsList()
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
repeated int64 ids = 1;
- Returns:
- A list containing the ids.
-
getIdsCount
int getIdsCount()
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
repeated int64 ids = 1;
- Returns:
- The count of ids.
-
getIds
long getIds(int index)
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly.
repeated int64 ids = 1;
- Parameters:
index
- The index of the element to return.- Returns:
- The ids at the given index.
-
getDisplayNamesList
List<String> getDisplayNamesList()
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;
- Returns:
- A list containing the displayNames.
-
getDisplayNamesCount
int getDisplayNamesCount()
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;
- Returns:
- The count of displayNames.
-
getDisplayNames
String getDisplayNames(int index)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;
- Parameters:
index
- The index of the element to return.- Returns:
- The displayNames at the given index.
-
getDisplayNamesBytes
com.google.protobuf.ByteString getDisplayNamesBytes(int index)
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
repeated string display_names = 2;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the displayNames at the given index.
-
getTextSegmentStartOffsetsList
List<Long> getTextSegmentStartOffsetsList()
The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_start_offsets = 3;
- Returns:
- A list containing the textSegmentStartOffsets.
-
getTextSegmentStartOffsetsCount
int getTextSegmentStartOffsetsCount()
The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_start_offsets = 3;
- Returns:
- The count of textSegmentStartOffsets.
-
getTextSegmentStartOffsets
long getTextSegmentStartOffsets(int index)
The start offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_start_offsets = 3;
- Parameters:
index
- The index of the element to return.- Returns:
- The textSegmentStartOffsets at the given index.
-
getTextSegmentEndOffsetsList
List<Long> getTextSegmentEndOffsetsList()
The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_end_offsets = 4;
- Returns:
- A list containing the textSegmentEndOffsets.
-
getTextSegmentEndOffsetsCount
int getTextSegmentEndOffsetsCount()
The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_end_offsets = 4;
- Returns:
- The count of textSegmentEndOffsets.
-
getTextSegmentEndOffsets
long getTextSegmentEndOffsets(int index)
The end offsets, inclusive, of the text segment in which the AnnotationSpec has been identified. Expressed as a zero-based number of characters as measured from the start of the text snippet.
repeated int64 text_segment_end_offsets = 4;
- Parameters:
index
- The index of the element to return.- Returns:
- The textSegmentEndOffsets at the given index.
-
getConfidencesList
List<Float> getConfidencesList()
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 5;
- Returns:
- A list containing the confidences.
-
getConfidencesCount
int getConfidencesCount()
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 5;
- Returns:
- The count of confidences.
-
getConfidences
float getConfidences(int index)
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
repeated float confidences = 5;
- Parameters:
index
- The index of the element to return.- Returns:
- The confidences at the given index.
-
-