| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/cloud/automl/v1/text_extraction.proto |
| |
| package automl |
| |
| import ( |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // Annotation for identifying spans of text. |
| type TextExtractionAnnotation struct { |
| // Required. Text extraction annotations can either be a text segment or a |
| // text relation. |
| // |
| // Types that are valid to be assigned to Annotation: |
| // *TextExtractionAnnotation_TextSegment |
| Annotation isTextExtractionAnnotation_Annotation `protobuf_oneof:"annotation"` |
| // Output only. A confidence estimate between 0.0 and 1.0. A higher value |
| // means greater confidence in correctness of the annotation. |
| Score float32 `protobuf:"fixed32,1,opt,name=score,proto3" json:"score,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *TextExtractionAnnotation) Reset() { *m = TextExtractionAnnotation{} } |
| func (m *TextExtractionAnnotation) String() string { return proto.CompactTextString(m) } |
| func (*TextExtractionAnnotation) ProtoMessage() {} |
| func (*TextExtractionAnnotation) Descriptor() ([]byte, []int) { |
| return fileDescriptor_d9a1af098e3392dc, []int{0} |
| } |
| |
| func (m *TextExtractionAnnotation) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_TextExtractionAnnotation.Unmarshal(m, b) |
| } |
| func (m *TextExtractionAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_TextExtractionAnnotation.Marshal(b, m, deterministic) |
| } |
| func (m *TextExtractionAnnotation) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_TextExtractionAnnotation.Merge(m, src) |
| } |
| func (m *TextExtractionAnnotation) XXX_Size() int { |
| return xxx_messageInfo_TextExtractionAnnotation.Size(m) |
| } |
| func (m *TextExtractionAnnotation) XXX_DiscardUnknown() { |
| xxx_messageInfo_TextExtractionAnnotation.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_TextExtractionAnnotation proto.InternalMessageInfo |
| |
| type isTextExtractionAnnotation_Annotation interface { |
| isTextExtractionAnnotation_Annotation() |
| } |
| |
| type TextExtractionAnnotation_TextSegment struct { |
| TextSegment *TextSegment `protobuf:"bytes,3,opt,name=text_segment,json=textSegment,proto3,oneof"` |
| } |
| |
| func (*TextExtractionAnnotation_TextSegment) isTextExtractionAnnotation_Annotation() {} |
| |
| func (m *TextExtractionAnnotation) GetAnnotation() isTextExtractionAnnotation_Annotation { |
| if m != nil { |
| return m.Annotation |
| } |
| return nil |
| } |
| |
| func (m *TextExtractionAnnotation) GetTextSegment() *TextSegment { |
| if x, ok := m.GetAnnotation().(*TextExtractionAnnotation_TextSegment); ok { |
| return x.TextSegment |
| } |
| return nil |
| } |
| |
| func (m *TextExtractionAnnotation) GetScore() float32 { |
| if m != nil { |
| return m.Score |
| } |
| return 0 |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*TextExtractionAnnotation) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*TextExtractionAnnotation_TextSegment)(nil), |
| } |
| } |
| |
| // Model evaluation metrics for text extraction problems. |
| type TextExtractionEvaluationMetrics struct { |
| // Output only. The Area under precision recall curve metric. |
| AuPrc float32 `protobuf:"fixed32,1,opt,name=au_prc,json=auPrc,proto3" json:"au_prc,omitempty"` |
| // Output only. Metrics that have confidence thresholds. |
| // Precision-recall curve can be derived from it. |
| ConfidenceMetricsEntries []*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry `protobuf:"bytes,2,rep,name=confidence_metrics_entries,json=confidenceMetricsEntries,proto3" json:"confidence_metrics_entries,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *TextExtractionEvaluationMetrics) Reset() { *m = TextExtractionEvaluationMetrics{} } |
| func (m *TextExtractionEvaluationMetrics) String() string { return proto.CompactTextString(m) } |
| func (*TextExtractionEvaluationMetrics) ProtoMessage() {} |
| func (*TextExtractionEvaluationMetrics) Descriptor() ([]byte, []int) { |
| return fileDescriptor_d9a1af098e3392dc, []int{1} |
| } |
| |
| func (m *TextExtractionEvaluationMetrics) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_TextExtractionEvaluationMetrics.Unmarshal(m, b) |
| } |
| func (m *TextExtractionEvaluationMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_TextExtractionEvaluationMetrics.Marshal(b, m, deterministic) |
| } |
| func (m *TextExtractionEvaluationMetrics) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_TextExtractionEvaluationMetrics.Merge(m, src) |
| } |
| func (m *TextExtractionEvaluationMetrics) XXX_Size() int { |
| return xxx_messageInfo_TextExtractionEvaluationMetrics.Size(m) |
| } |
| func (m *TextExtractionEvaluationMetrics) XXX_DiscardUnknown() { |
| xxx_messageInfo_TextExtractionEvaluationMetrics.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_TextExtractionEvaluationMetrics proto.InternalMessageInfo |
| |
| func (m *TextExtractionEvaluationMetrics) GetAuPrc() float32 { |
| if m != nil { |
| return m.AuPrc |
| } |
| return 0 |
| } |
| |
| func (m *TextExtractionEvaluationMetrics) GetConfidenceMetricsEntries() []*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry { |
| if m != nil { |
| return m.ConfidenceMetricsEntries |
| } |
| return nil |
| } |
| |
| // Metrics for a single confidence threshold. |
| type TextExtractionEvaluationMetrics_ConfidenceMetricsEntry struct { |
| // Output only. The confidence threshold value used to compute the metrics. |
| // Only annotations with score of at least this threshold are considered to |
| // be ones the model would return. |
| ConfidenceThreshold float32 `protobuf:"fixed32,1,opt,name=confidence_threshold,json=confidenceThreshold,proto3" json:"confidence_threshold,omitempty"` |
| // Output only. Recall under the given confidence threshold. |
| Recall float32 `protobuf:"fixed32,3,opt,name=recall,proto3" json:"recall,omitempty"` |
| // Output only. Precision under the given confidence threshold. |
| Precision float32 `protobuf:"fixed32,4,opt,name=precision,proto3" json:"precision,omitempty"` |
| // Output only. The harmonic mean of recall and precision. |
| F1Score float32 `protobuf:"fixed32,5,opt,name=f1_score,json=f1Score,proto3" json:"f1_score,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) Reset() { |
| *m = TextExtractionEvaluationMetrics_ConfidenceMetricsEntry{} |
| } |
| func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) String() string { |
| return proto.CompactTextString(m) |
| } |
| func (*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) ProtoMessage() {} |
| func (*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) Descriptor() ([]byte, []int) { |
| return fileDescriptor_d9a1af098e3392dc, []int{1, 0} |
| } |
| |
| func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry.Unmarshal(m, b) |
| } |
| func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry.Marshal(b, m, deterministic) |
| } |
| func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry.Merge(m, src) |
| } |
| func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) XXX_Size() int { |
| return xxx_messageInfo_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry.Size(m) |
| } |
| func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) XXX_DiscardUnknown() { |
| xxx_messageInfo_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry proto.InternalMessageInfo |
| |
| func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) GetConfidenceThreshold() float32 { |
| if m != nil { |
| return m.ConfidenceThreshold |
| } |
| return 0 |
| } |
| |
| func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) GetRecall() float32 { |
| if m != nil { |
| return m.Recall |
| } |
| return 0 |
| } |
| |
| func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) GetPrecision() float32 { |
| if m != nil { |
| return m.Precision |
| } |
| return 0 |
| } |
| |
| func (m *TextExtractionEvaluationMetrics_ConfidenceMetricsEntry) GetF1Score() float32 { |
| if m != nil { |
| return m.F1Score |
| } |
| return 0 |
| } |
| |
| func init() { |
| proto.RegisterType((*TextExtractionAnnotation)(nil), "google.cloud.automl.v1.TextExtractionAnnotation") |
| proto.RegisterType((*TextExtractionEvaluationMetrics)(nil), "google.cloud.automl.v1.TextExtractionEvaluationMetrics") |
| proto.RegisterType((*TextExtractionEvaluationMetrics_ConfidenceMetricsEntry)(nil), "google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/cloud/automl/v1/text_extraction.proto", fileDescriptor_d9a1af098e3392dc) |
| } |
| |
| var fileDescriptor_d9a1af098e3392dc = []byte{ |
| // 439 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x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