public static interface TextAnnotationImpl.ConstituentProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
containsLabelScoreMap(String key)
Map containing scores to each label
|
boolean |
containsProperties(String key)
Attribute information
|
int |
getEnd()
End index of the span + 1
Span indices correspond to indices in the tokens list.
|
String |
getLabel()
Label of the constituent
|
com.google.protobuf.ByteString |
getLabelBytes()
Label of the constituent
|
Map<String,Double> |
getLabelScoreMap()
Deprecated.
|
int |
getLabelScoreMapCount()
Map containing scores to each label
|
Map<String,Double> |
getLabelScoreMapMap()
Map containing scores to each label
|
double |
getLabelScoreMapOrDefault(String key,
double defaultValue)
Map containing scores to each label
|
double |
getLabelScoreMapOrThrow(String key)
Map containing scores to each label
|
Map<String,String> |
getProperties()
Deprecated.
|
int |
getPropertiesCount()
Attribute information
|
Map<String,String> |
getPropertiesMap()
Attribute information
|
String |
getPropertiesOrDefault(String key,
String defaultValue)
Attribute information
|
String |
getPropertiesOrThrow(String key)
Attribute information
|
double |
getScore()
Score of the constituent
|
int |
getStart()
Start index of the span
Span indices correspond to indices in the tokens list.
|
boolean |
hasEnd()
End index of the span + 1
Span indices correspond to indices in the tokens list.
|
boolean |
hasLabel()
Label of the constituent
|
boolean |
hasScore()
Score of the constituent
|
boolean |
hasStart()
Start index of the span
Span indices correspond to indices in the tokens list.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
boolean hasLabel()
Label of the constituent
required string label = 1;
String getLabel()
Label of the constituent
required string label = 1;
com.google.protobuf.ByteString getLabelBytes()
Label of the constituent
required string label = 1;
boolean hasScore()
Score of the constituent
optional double score = 2 [default = 0];
double getScore()
Score of the constituent
optional double score = 2 [default = 0];
boolean hasStart()
Start index of the span Span indices correspond to indices in the tokens list.
required int32 start = 3;
int getStart()
Start index of the span Span indices correspond to indices in the tokens list.
required int32 start = 3;
boolean hasEnd()
End index of the span + 1 Span indices correspond to indices in the tokens list. Usage: a span corresponds to [start, end) - end is not inclusive.
required int32 end = 4;
int getEnd()
End index of the span + 1 Span indices correspond to indices in the tokens list. Usage: a span corresponds to [start, end) - end is not inclusive.
required int32 end = 4;
int getPropertiesCount()
Attribute information
map<string, string> properties = 5;
boolean containsProperties(String key)
Attribute information
map<string, string> properties = 5;
@Deprecated Map<String,String> getProperties()
getPropertiesMap()
instead.Map<String,String> getPropertiesMap()
Attribute information
map<string, string> properties = 5;
String getPropertiesOrDefault(String key, String defaultValue)
Attribute information
map<string, string> properties = 5;
String getPropertiesOrThrow(String key)
Attribute information
map<string, string> properties = 5;
int getLabelScoreMapCount()
Map containing scores to each label
map<string, double> labelScoreMap = 6;
boolean containsLabelScoreMap(String key)
Map containing scores to each label
map<string, double> labelScoreMap = 6;
@Deprecated Map<String,Double> getLabelScoreMap()
getLabelScoreMapMap()
instead.Map<String,Double> getLabelScoreMapMap()
Map containing scores to each label
map<string, double> labelScoreMap = 6;
double getLabelScoreMapOrDefault(String key, double defaultValue)
Map containing scores to each label
map<string, double> labelScoreMap = 6;
double getLabelScoreMapOrThrow(String key)
Map containing scores to each label
map<string, double> labelScoreMap = 6;
Copyright © 2017. All rights reserved.