-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCoreNLP.pb.go
6378 lines (5705 loc) · 255 KB
/
CoreNLP.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.2
// source: src/edu/stanford/nlp/pipeline/CoreNLP.proto
package corenlp
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
//
// An enumeration for the valid languages allowed in CoreNLP
//
type Language int32
const (
Language_Unknown Language = 0
Language_Any Language = 1
Language_Arabic Language = 2
Language_Chinese Language = 3
Language_English Language = 4
Language_German Language = 5
Language_French Language = 6
Language_Hebrew Language = 7
Language_Spanish Language = 8
Language_UniversalEnglish Language = 9
Language_UniversalChinese Language = 10
)
// Enum value maps for Language.
var (
Language_name = map[int32]string{
0: "Unknown",
1: "Any",
2: "Arabic",
3: "Chinese",
4: "English",
5: "German",
6: "French",
7: "Hebrew",
8: "Spanish",
9: "UniversalEnglish",
10: "UniversalChinese",
}
Language_value = map[string]int32{
"Unknown": 0,
"Any": 1,
"Arabic": 2,
"Chinese": 3,
"English": 4,
"German": 5,
"French": 6,
"Hebrew": 7,
"Spanish": 8,
"UniversalEnglish": 9,
"UniversalChinese": 10,
}
)
func (x Language) Enum() *Language {
p := new(Language)
*p = x
return p
}
func (x Language) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Language) Descriptor() protoreflect.EnumDescriptor {
return file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_enumTypes[0].Descriptor()
}
func (Language) Type() protoreflect.EnumType {
return &file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_enumTypes[0]
}
func (x Language) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Do not use.
func (x *Language) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = Language(num)
return nil
}
// Deprecated: Use Language.Descriptor instead.
func (Language) EnumDescriptor() ([]byte, []int) {
return file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_rawDescGZIP(), []int{0}
}
//
// An enumeration of valid sentiment values for the sentiment classifier.
//
type Sentiment int32
const (
Sentiment_STRONG_NEGATIVE Sentiment = 0
Sentiment_WEAK_NEGATIVE Sentiment = 1
Sentiment_NEUTRAL Sentiment = 2
Sentiment_WEAK_POSITIVE Sentiment = 3
Sentiment_STRONG_POSITIVE Sentiment = 4
)
// Enum value maps for Sentiment.
var (
Sentiment_name = map[int32]string{
0: "STRONG_NEGATIVE",
1: "WEAK_NEGATIVE",
2: "NEUTRAL",
3: "WEAK_POSITIVE",
4: "STRONG_POSITIVE",
}
Sentiment_value = map[string]int32{
"STRONG_NEGATIVE": 0,
"WEAK_NEGATIVE": 1,
"NEUTRAL": 2,
"WEAK_POSITIVE": 3,
"STRONG_POSITIVE": 4,
}
)
func (x Sentiment) Enum() *Sentiment {
p := new(Sentiment)
*p = x
return p
}
func (x Sentiment) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Sentiment) Descriptor() protoreflect.EnumDescriptor {
return file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_enumTypes[1].Descriptor()
}
func (Sentiment) Type() protoreflect.EnumType {
return &file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_enumTypes[1]
}
func (x Sentiment) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Do not use.
func (x *Sentiment) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = Sentiment(num)
return nil
}
// Deprecated: Use Sentiment.Descriptor instead.
func (Sentiment) EnumDescriptor() ([]byte, []int) {
return file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_rawDescGZIP(), []int{1}
}
//
// The seven informative Natural Logic relations
//
type NaturalLogicRelation int32
const (
NaturalLogicRelation_EQUIVALENCE NaturalLogicRelation = 0
NaturalLogicRelation_FORWARD_ENTAILMENT NaturalLogicRelation = 1
NaturalLogicRelation_REVERSE_ENTAILMENT NaturalLogicRelation = 2
NaturalLogicRelation_NEGATION NaturalLogicRelation = 3
NaturalLogicRelation_ALTERNATION NaturalLogicRelation = 4
NaturalLogicRelation_COVER NaturalLogicRelation = 5
NaturalLogicRelation_INDEPENDENCE NaturalLogicRelation = 6
)
// Enum value maps for NaturalLogicRelation.
var (
NaturalLogicRelation_name = map[int32]string{
0: "EQUIVALENCE",
1: "FORWARD_ENTAILMENT",
2: "REVERSE_ENTAILMENT",
3: "NEGATION",
4: "ALTERNATION",
5: "COVER",
6: "INDEPENDENCE",
}
NaturalLogicRelation_value = map[string]int32{
"EQUIVALENCE": 0,
"FORWARD_ENTAILMENT": 1,
"REVERSE_ENTAILMENT": 2,
"NEGATION": 3,
"ALTERNATION": 4,
"COVER": 5,
"INDEPENDENCE": 6,
}
)
func (x NaturalLogicRelation) Enum() *NaturalLogicRelation {
p := new(NaturalLogicRelation)
*p = x
return p
}
func (x NaturalLogicRelation) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (NaturalLogicRelation) Descriptor() protoreflect.EnumDescriptor {
return file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_enumTypes[2].Descriptor()
}
func (NaturalLogicRelation) Type() protoreflect.EnumType {
return &file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_enumTypes[2]
}
func (x NaturalLogicRelation) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Do not use.
func (x *NaturalLogicRelation) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = NaturalLogicRelation(num)
return nil
}
// Deprecated: Use NaturalLogicRelation.Descriptor instead.
func (NaturalLogicRelation) EnumDescriptor() ([]byte, []int) {
return file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_rawDescGZIP(), []int{2}
}
//
// A document; that is, the equivalent of an Annotation.
//
type Document struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
extensionFields protoimpl.ExtensionFields
Text *string `protobuf:"bytes,1,req,name=text" json:"text,omitempty"`
Sentence []*Sentence `protobuf:"bytes,2,rep,name=sentence" json:"sentence,omitempty"`
CorefChain []*CorefChain `protobuf:"bytes,3,rep,name=corefChain" json:"corefChain,omitempty"`
DocID *string `protobuf:"bytes,4,opt,name=docID" json:"docID,omitempty"`
DocDate *string `protobuf:"bytes,7,opt,name=docDate" json:"docDate,omitempty"`
Calendar *uint64 `protobuf:"varint,8,opt,name=calendar" json:"calendar,omitempty"`
//
// A peculiar field, for the corner case when a Document is
// serialized without any sentences. Otherwise
SentencelessToken []*Token `protobuf:"bytes,5,rep,name=sentencelessToken" json:"sentencelessToken,omitempty"`
Character []*Token `protobuf:"bytes,10,rep,name=character" json:"character,omitempty"`
Quote []*Quote `protobuf:"bytes,6,rep,name=quote" json:"quote,omitempty"`
//
// This field is for entity mentions across the document.
Mentions []*NERMention `protobuf:"bytes,9,rep,name=mentions" json:"mentions,omitempty"`
HasEntityMentionsAnnotation *bool `protobuf:"varint,13,opt,name=hasEntityMentionsAnnotation" json:"hasEntityMentionsAnnotation,omitempty"` // used to differentiate between null and empty list
//
// xml information
XmlDoc *bool `protobuf:"varint,11,opt,name=xmlDoc" json:"xmlDoc,omitempty"`
Sections []*Section `protobuf:"bytes,12,rep,name=sections" json:"sections,omitempty"`
// coref mentions for entire document *
MentionsForCoref []*Mention `protobuf:"bytes,14,rep,name=mentionsForCoref" json:"mentionsForCoref,omitempty"`
HasCorefMentionAnnotation *bool `protobuf:"varint,15,opt,name=hasCorefMentionAnnotation" json:"hasCorefMentionAnnotation,omitempty"`
HasCorefAnnotation *bool `protobuf:"varint,16,opt,name=hasCorefAnnotation" json:"hasCorefAnnotation,omitempty"`
CorefMentionToEntityMentionMappings []int32 `protobuf:"varint,17,rep,name=corefMentionToEntityMentionMappings" json:"corefMentionToEntityMentionMappings,omitempty"`
EntityMentionToCorefMentionMappings []int32 `protobuf:"varint,18,rep,name=entityMentionToCorefMentionMappings" json:"entityMentionToCorefMentionMappings,omitempty"`
}
func (x *Document) Reset() {
*x = Document{}
if protoimpl.UnsafeEnabled {
mi := &file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Document) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Document) ProtoMessage() {}
func (x *Document) ProtoReflect() protoreflect.Message {
mi := &file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Document.ProtoReflect.Descriptor instead.
func (*Document) Descriptor() ([]byte, []int) {
return file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_rawDescGZIP(), []int{0}
}
var extRange_Document = []protoiface.ExtensionRangeV1{
{Start: 100, End: 255},
}
// Deprecated: Use Document.ProtoReflect.Descriptor.ExtensionRanges instead.
func (*Document) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
return extRange_Document
}
func (x *Document) GetText() string {
if x != nil && x.Text != nil {
return *x.Text
}
return ""
}
func (x *Document) GetSentence() []*Sentence {
if x != nil {
return x.Sentence
}
return nil
}
func (x *Document) GetCorefChain() []*CorefChain {
if x != nil {
return x.CorefChain
}
return nil
}
func (x *Document) GetDocID() string {
if x != nil && x.DocID != nil {
return *x.DocID
}
return ""
}
func (x *Document) GetDocDate() string {
if x != nil && x.DocDate != nil {
return *x.DocDate
}
return ""
}
func (x *Document) GetCalendar() uint64 {
if x != nil && x.Calendar != nil {
return *x.Calendar
}
return 0
}
func (x *Document) GetSentencelessToken() []*Token {
if x != nil {
return x.SentencelessToken
}
return nil
}
func (x *Document) GetCharacter() []*Token {
if x != nil {
return x.Character
}
return nil
}
func (x *Document) GetQuote() []*Quote {
if x != nil {
return x.Quote
}
return nil
}
func (x *Document) GetMentions() []*NERMention {
if x != nil {
return x.Mentions
}
return nil
}
func (x *Document) GetHasEntityMentionsAnnotation() bool {
if x != nil && x.HasEntityMentionsAnnotation != nil {
return *x.HasEntityMentionsAnnotation
}
return false
}
func (x *Document) GetXmlDoc() bool {
if x != nil && x.XmlDoc != nil {
return *x.XmlDoc
}
return false
}
func (x *Document) GetSections() []*Section {
if x != nil {
return x.Sections
}
return nil
}
func (x *Document) GetMentionsForCoref() []*Mention {
if x != nil {
return x.MentionsForCoref
}
return nil
}
func (x *Document) GetHasCorefMentionAnnotation() bool {
if x != nil && x.HasCorefMentionAnnotation != nil {
return *x.HasCorefMentionAnnotation
}
return false
}
func (x *Document) GetHasCorefAnnotation() bool {
if x != nil && x.HasCorefAnnotation != nil {
return *x.HasCorefAnnotation
}
return false
}
func (x *Document) GetCorefMentionToEntityMentionMappings() []int32 {
if x != nil {
return x.CorefMentionToEntityMentionMappings
}
return nil
}
func (x *Document) GetEntityMentionToCorefMentionMappings() []int32 {
if x != nil {
return x.EntityMentionToCorefMentionMappings
}
return nil
}
//
// The serialized version of a CoreMap representing a sentence.
//
type Sentence struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
extensionFields protoimpl.ExtensionFields
Token []*Token `protobuf:"bytes,1,rep,name=token" json:"token,omitempty"`
TokenOffsetBegin *uint32 `protobuf:"varint,2,req,name=tokenOffsetBegin" json:"tokenOffsetBegin,omitempty"`
TokenOffsetEnd *uint32 `protobuf:"varint,3,req,name=tokenOffsetEnd" json:"tokenOffsetEnd,omitempty"`
SentenceIndex *uint32 `protobuf:"varint,4,opt,name=sentenceIndex" json:"sentenceIndex,omitempty"`
CharacterOffsetBegin *uint32 `protobuf:"varint,5,opt,name=characterOffsetBegin" json:"characterOffsetBegin,omitempty"`
CharacterOffsetEnd *uint32 `protobuf:"varint,6,opt,name=characterOffsetEnd" json:"characterOffsetEnd,omitempty"`
ParseTree *ParseTree `protobuf:"bytes,7,opt,name=parseTree" json:"parseTree,omitempty"`
BinarizedParseTree *ParseTree `protobuf:"bytes,31,opt,name=binarizedParseTree" json:"binarizedParseTree,omitempty"`
AnnotatedParseTree *ParseTree `protobuf:"bytes,32,opt,name=annotatedParseTree" json:"annotatedParseTree,omitempty"`
Sentiment *string `protobuf:"bytes,33,opt,name=sentiment" json:"sentiment,omitempty"`
KBestParseTrees []*ParseTree `protobuf:"bytes,34,rep,name=kBestParseTrees" json:"kBestParseTrees,omitempty"`
BasicDependencies *DependencyGraph `protobuf:"bytes,8,opt,name=basicDependencies" json:"basicDependencies,omitempty"`
CollapsedDependencies *DependencyGraph `protobuf:"bytes,9,opt,name=collapsedDependencies" json:"collapsedDependencies,omitempty"`
CollapsedCCProcessedDependencies *DependencyGraph `protobuf:"bytes,10,opt,name=collapsedCCProcessedDependencies" json:"collapsedCCProcessedDependencies,omitempty"`
AlternativeDependencies *DependencyGraph `protobuf:"bytes,13,opt,name=alternativeDependencies" json:"alternativeDependencies,omitempty"`
OpenieTriple []*RelationTriple `protobuf:"bytes,14,rep,name=openieTriple" json:"openieTriple,omitempty"` // The OpenIE triples in the sentence
KbpTriple []*RelationTriple `protobuf:"bytes,16,rep,name=kbpTriple" json:"kbpTriple,omitempty"` // The KBP triples in this sentence
EntailedSentence []*SentenceFragment `protobuf:"bytes,15,rep,name=entailedSentence" json:"entailedSentence,omitempty"` // The entailed sentences, by natural logic
EntailedClause []*SentenceFragment `protobuf:"bytes,35,rep,name=entailedClause" json:"entailedClause,omitempty"` // The entailed clauses, by natural logic
EnhancedDependencies *DependencyGraph `protobuf:"bytes,17,opt,name=enhancedDependencies" json:"enhancedDependencies,omitempty"`
EnhancedPlusPlusDependencies *DependencyGraph `protobuf:"bytes,18,opt,name=enhancedPlusPlusDependencies" json:"enhancedPlusPlusDependencies,omitempty"`
Character []*Token `protobuf:"bytes,19,rep,name=character" json:"character,omitempty"`
Paragraph *uint32 `protobuf:"varint,11,opt,name=paragraph" json:"paragraph,omitempty"`
Text *string `protobuf:"bytes,12,opt,name=text" json:"text,omitempty"` // Only needed if we're only saving the sentence.
LineNumber *uint32 `protobuf:"varint,20,opt,name=lineNumber" json:"lineNumber,omitempty"`
// Fields set by other annotators in CoreNLP
HasRelationAnnotations *bool `protobuf:"varint,51,opt,name=hasRelationAnnotations" json:"hasRelationAnnotations,omitempty"`
Entity []*Entity `protobuf:"bytes,52,rep,name=entity" json:"entity,omitempty"`
Relation []*Relation `protobuf:"bytes,53,rep,name=relation" json:"relation,omitempty"`
HasNumerizedTokensAnnotation *bool `protobuf:"varint,54,opt,name=hasNumerizedTokensAnnotation" json:"hasNumerizedTokensAnnotation,omitempty"`
Mentions []*NERMention `protobuf:"bytes,55,rep,name=mentions" json:"mentions,omitempty"`
MentionsForCoref []*Mention `protobuf:"bytes,56,rep,name=mentionsForCoref" json:"mentionsForCoref,omitempty"`
HasCorefMentionsAnnotation *bool `protobuf:"varint,57,opt,name=hasCorefMentionsAnnotation" json:"hasCorefMentionsAnnotation,omitempty"`
SentenceID *string `protobuf:"bytes,58,opt,name=sentenceID" json:"sentenceID,omitempty"` // Useful when storing sentences (e.g. ForEach)
SectionDate *string `protobuf:"bytes,59,opt,name=sectionDate" json:"sectionDate,omitempty"` // date of section
SectionIndex *uint32 `protobuf:"varint,60,opt,name=sectionIndex" json:"sectionIndex,omitempty"` // section index for this sentence's section
SectionName *string `protobuf:"bytes,61,opt,name=sectionName" json:"sectionName,omitempty"` // name of section
SectionAuthor *string `protobuf:"bytes,62,opt,name=sectionAuthor" json:"sectionAuthor,omitempty"` // author of section
DocID *string `protobuf:"bytes,63,opt,name=docID" json:"docID,omitempty"` // doc id
SectionQuoted *bool `protobuf:"varint,64,opt,name=sectionQuoted" json:"sectionQuoted,omitempty"` // is this sentence in an xml quote in a post
HasEntityMentionsAnnotation *bool `protobuf:"varint,65,opt,name=hasEntityMentionsAnnotation" json:"hasEntityMentionsAnnotation,omitempty"` // check if there are entity mentions
HasKBPTriplesAnnotation *bool `protobuf:"varint,68,opt,name=hasKBPTriplesAnnotation" json:"hasKBPTriplesAnnotation,omitempty"` // check if there are KBP triples
HasOpenieTriplesAnnotation *bool `protobuf:"varint,69,opt,name=hasOpenieTriplesAnnotation" json:"hasOpenieTriplesAnnotation,omitempty"` // check if there are OpenIE triples
// quote stuff
ChapterIndex *uint32 `protobuf:"varint,66,opt,name=chapterIndex" json:"chapterIndex,omitempty"`
ParagraphIndex *uint32 `protobuf:"varint,67,opt,name=paragraphIndex" json:"paragraphIndex,omitempty"`
// the quote annotator can soometimes add merged sentences
EnhancedSentence *Sentence `protobuf:"bytes,70,opt,name=enhancedSentence" json:"enhancedSentence,omitempty"`
// speaker stuff
Speaker *string `protobuf:"bytes,71,opt,name=speaker" json:"speaker,omitempty"` // The speaker speaking this sentence
SpeakerType *string `protobuf:"bytes,72,opt,name=speakerType" json:"speakerType,omitempty"` // The type of speaker speaking this sentence
}
func (x *Sentence) Reset() {
*x = Sentence{}
if protoimpl.UnsafeEnabled {
mi := &file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Sentence) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Sentence) ProtoMessage() {}
func (x *Sentence) ProtoReflect() protoreflect.Message {
mi := &file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Sentence.ProtoReflect.Descriptor instead.
func (*Sentence) Descriptor() ([]byte, []int) {
return file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_rawDescGZIP(), []int{1}
}
var extRange_Sentence = []protoiface.ExtensionRangeV1{
{Start: 100, End: 255},
}
// Deprecated: Use Sentence.ProtoReflect.Descriptor.ExtensionRanges instead.
func (*Sentence) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
return extRange_Sentence
}
func (x *Sentence) GetToken() []*Token {
if x != nil {
return x.Token
}
return nil
}
func (x *Sentence) GetTokenOffsetBegin() uint32 {
if x != nil && x.TokenOffsetBegin != nil {
return *x.TokenOffsetBegin
}
return 0
}
func (x *Sentence) GetTokenOffsetEnd() uint32 {
if x != nil && x.TokenOffsetEnd != nil {
return *x.TokenOffsetEnd
}
return 0
}
func (x *Sentence) GetSentenceIndex() uint32 {
if x != nil && x.SentenceIndex != nil {
return *x.SentenceIndex
}
return 0
}
func (x *Sentence) GetCharacterOffsetBegin() uint32 {
if x != nil && x.CharacterOffsetBegin != nil {
return *x.CharacterOffsetBegin
}
return 0
}
func (x *Sentence) GetCharacterOffsetEnd() uint32 {
if x != nil && x.CharacterOffsetEnd != nil {
return *x.CharacterOffsetEnd
}
return 0
}
func (x *Sentence) GetParseTree() *ParseTree {
if x != nil {
return x.ParseTree
}
return nil
}
func (x *Sentence) GetBinarizedParseTree() *ParseTree {
if x != nil {
return x.BinarizedParseTree
}
return nil
}
func (x *Sentence) GetAnnotatedParseTree() *ParseTree {
if x != nil {
return x.AnnotatedParseTree
}
return nil
}
func (x *Sentence) GetSentiment() string {
if x != nil && x.Sentiment != nil {
return *x.Sentiment
}
return ""
}
func (x *Sentence) GetKBestParseTrees() []*ParseTree {
if x != nil {
return x.KBestParseTrees
}
return nil
}
func (x *Sentence) GetBasicDependencies() *DependencyGraph {
if x != nil {
return x.BasicDependencies
}
return nil
}
func (x *Sentence) GetCollapsedDependencies() *DependencyGraph {
if x != nil {
return x.CollapsedDependencies
}
return nil
}
func (x *Sentence) GetCollapsedCCProcessedDependencies() *DependencyGraph {
if x != nil {
return x.CollapsedCCProcessedDependencies
}
return nil
}
func (x *Sentence) GetAlternativeDependencies() *DependencyGraph {
if x != nil {
return x.AlternativeDependencies
}
return nil
}
func (x *Sentence) GetOpenieTriple() []*RelationTriple {
if x != nil {
return x.OpenieTriple
}
return nil
}
func (x *Sentence) GetKbpTriple() []*RelationTriple {
if x != nil {
return x.KbpTriple
}
return nil
}
func (x *Sentence) GetEntailedSentence() []*SentenceFragment {
if x != nil {
return x.EntailedSentence
}
return nil
}
func (x *Sentence) GetEntailedClause() []*SentenceFragment {
if x != nil {
return x.EntailedClause
}
return nil
}
func (x *Sentence) GetEnhancedDependencies() *DependencyGraph {
if x != nil {
return x.EnhancedDependencies
}
return nil
}
func (x *Sentence) GetEnhancedPlusPlusDependencies() *DependencyGraph {
if x != nil {
return x.EnhancedPlusPlusDependencies
}
return nil
}
func (x *Sentence) GetCharacter() []*Token {
if x != nil {
return x.Character
}
return nil
}
func (x *Sentence) GetParagraph() uint32 {
if x != nil && x.Paragraph != nil {
return *x.Paragraph
}
return 0
}
func (x *Sentence) GetText() string {
if x != nil && x.Text != nil {
return *x.Text
}
return ""
}
func (x *Sentence) GetLineNumber() uint32 {
if x != nil && x.LineNumber != nil {
return *x.LineNumber
}
return 0
}
func (x *Sentence) GetHasRelationAnnotations() bool {
if x != nil && x.HasRelationAnnotations != nil {
return *x.HasRelationAnnotations
}
return false
}
func (x *Sentence) GetEntity() []*Entity {
if x != nil {
return x.Entity
}
return nil
}
func (x *Sentence) GetRelation() []*Relation {
if x != nil {
return x.Relation
}
return nil
}
func (x *Sentence) GetHasNumerizedTokensAnnotation() bool {
if x != nil && x.HasNumerizedTokensAnnotation != nil {
return *x.HasNumerizedTokensAnnotation
}
return false
}
func (x *Sentence) GetMentions() []*NERMention {
if x != nil {
return x.Mentions
}
return nil
}
func (x *Sentence) GetMentionsForCoref() []*Mention {
if x != nil {
return x.MentionsForCoref
}
return nil
}
func (x *Sentence) GetHasCorefMentionsAnnotation() bool {
if x != nil && x.HasCorefMentionsAnnotation != nil {
return *x.HasCorefMentionsAnnotation
}
return false
}
func (x *Sentence) GetSentenceID() string {
if x != nil && x.SentenceID != nil {
return *x.SentenceID
}
return ""
}
func (x *Sentence) GetSectionDate() string {
if x != nil && x.SectionDate != nil {
return *x.SectionDate
}
return ""
}
func (x *Sentence) GetSectionIndex() uint32 {
if x != nil && x.SectionIndex != nil {
return *x.SectionIndex
}
return 0
}
func (x *Sentence) GetSectionName() string {
if x != nil && x.SectionName != nil {
return *x.SectionName
}
return ""
}
func (x *Sentence) GetSectionAuthor() string {
if x != nil && x.SectionAuthor != nil {
return *x.SectionAuthor
}
return ""
}
func (x *Sentence) GetDocID() string {
if x != nil && x.DocID != nil {
return *x.DocID
}
return ""
}
func (x *Sentence) GetSectionQuoted() bool {
if x != nil && x.SectionQuoted != nil {
return *x.SectionQuoted
}
return false
}
func (x *Sentence) GetHasEntityMentionsAnnotation() bool {
if x != nil && x.HasEntityMentionsAnnotation != nil {
return *x.HasEntityMentionsAnnotation
}
return false
}
func (x *Sentence) GetHasKBPTriplesAnnotation() bool {
if x != nil && x.HasKBPTriplesAnnotation != nil {
return *x.HasKBPTriplesAnnotation
}
return false
}
func (x *Sentence) GetHasOpenieTriplesAnnotation() bool {
if x != nil && x.HasOpenieTriplesAnnotation != nil {
return *x.HasOpenieTriplesAnnotation
}
return false
}
func (x *Sentence) GetChapterIndex() uint32 {
if x != nil && x.ChapterIndex != nil {
return *x.ChapterIndex
}
return 0
}
func (x *Sentence) GetParagraphIndex() uint32 {
if x != nil && x.ParagraphIndex != nil {
return *x.ParagraphIndex
}
return 0
}
func (x *Sentence) GetEnhancedSentence() *Sentence {
if x != nil {
return x.EnhancedSentence
}
return nil
}
func (x *Sentence) GetSpeaker() string {
if x != nil && x.Speaker != nil {
return *x.Speaker
}
return ""
}
func (x *Sentence) GetSpeakerType() string {
if x != nil && x.SpeakerType != nil {
return *x.SpeakerType
}
return ""
}
//
// The serialized version of a Token (a CoreLabel).
//
type Token struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
extensionFields protoimpl.ExtensionFields
// Fields set by the default annotators [new CoreNLP(new Properties())]
Word *string `protobuf:"bytes,1,opt,name=word" json:"word,omitempty"` // the word's gloss (post-tokenization)
Pos *string `protobuf:"bytes,2,opt,name=pos" json:"pos,omitempty"` // The word's part of speech tag
Value *string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"` // The word's 'value', (e.g., parse tree node)
Category *string `protobuf:"bytes,4,opt,name=category" json:"category,omitempty"` // The word's 'category' (e.g., parse tree node)
Before *string `protobuf:"bytes,5,opt,name=before" json:"before,omitempty"` // The whitespace/xml before the token
After *string `protobuf:"bytes,6,opt,name=after" json:"after,omitempty"` // The whitespace/xml after the token
OriginalText *string `protobuf:"bytes,7,opt,name=originalText" json:"originalText,omitempty"` // The original text for this token
Ner *string `protobuf:"bytes,8,opt,name=ner" json:"ner,omitempty"` // The word's NER tag
CoarseNER *string `protobuf:"bytes,62,opt,name=coarseNER" json:"coarseNER,omitempty"` // The word's coarse NER tag
FineGrainedNER *string `protobuf:"bytes,63,opt,name=fineGrainedNER" json:"fineGrainedNER,omitempty"` // The word's fine-grained NER tag
NerLabelProbs []string `protobuf:"bytes,66,rep,name=nerLabelProbs" json:"nerLabelProbs,omitempty"` // listing of probs
NormalizedNER *string `protobuf:"bytes,9,opt,name=normalizedNER" json:"normalizedNER,omitempty"` // The word's normalized NER tag
Lemma *string `protobuf:"bytes,10,opt,name=lemma" json:"lemma,omitempty"` // The word's lemma
BeginChar *uint32 `protobuf:"varint,11,opt,name=beginChar" json:"beginChar,omitempty"` // The character offset begin, in the document
EndChar *uint32 `protobuf:"varint,12,opt,name=endChar" json:"endChar,omitempty"` // The character offset end, in the document
Utterance *uint32 `protobuf:"varint,13,opt,name=utterance" json:"utterance,omitempty"` // The utterance tag used in dcoref
Speaker *string `protobuf:"bytes,14,opt,name=speaker" json:"speaker,omitempty"` // The speaker speaking this word
SpeakerType *string `protobuf:"bytes,77,opt,name=speakerType" json:"speakerType,omitempty"` // The type of speaker speaking this word
BeginIndex *uint32 `protobuf:"varint,15,opt,name=beginIndex" json:"beginIndex,omitempty"` // The begin index of, e.g., a span
EndIndex *uint32 `protobuf:"varint,16,opt,name=endIndex" json:"endIndex,omitempty"` // The begin index of, e.g., a span
TokenBeginIndex *uint32 `protobuf:"varint,17,opt,name=tokenBeginIndex" json:"tokenBeginIndex,omitempty"` // The begin index of the token
TokenEndIndex *uint32 `protobuf:"varint,18,opt,name=tokenEndIndex" json:"tokenEndIndex,omitempty"` // The end index of the token
TimexValue *Timex `protobuf:"bytes,19,opt,name=timexValue" json:"timexValue,omitempty"` // The time this word refers to
HasXmlContext *bool `protobuf:"varint,21,opt,name=hasXmlContext" json:"hasXmlContext,omitempty"` // Used by clean xml annotator
XmlContext []string `protobuf:"bytes,22,rep,name=xmlContext" json:"xmlContext,omitempty"` // Used by clean xml annotator
CorefClusterID *uint32 `protobuf:"varint,23,opt,name=corefClusterID" json:"corefClusterID,omitempty"` // The [primary] cluster id for this token
Answer *string `protobuf:"bytes,24,opt,name=answer" json:"answer,omitempty"` // A temporary annotation which is occasionally left in
// optional string projectedCategory = 25; // The syntactic category of the maximal constituent headed by the word. Not used anywhere, so deleted.
HeadWordIndex *uint32 `protobuf:"varint,26,opt,name=headWordIndex" json:"headWordIndex,omitempty"` // The index of the head word of this word.
Operator *Operator `protobuf:"bytes,27,opt,name=operator" json:"operator,omitempty"` // If this is an operator, which one is it and what is its scope (as per Natural Logic)?
Polarity *Polarity `protobuf:"bytes,28,opt,name=polarity" json:"polarity,omitempty"` // The polarity of this word, according to Natural Logic
PolarityDir *string `protobuf:"bytes,39,opt,name=polarity_dir,json=polarityDir" json:"polarity_dir,omitempty"` // The polarity of this word, either "up", "down", or "flat"
Span *Span `protobuf:"bytes,29,opt,name=span" json:"span,omitempty"` // The span of a leaf node of a tree
Sentiment *string `protobuf:"bytes,30,opt,name=sentiment" json:"sentiment,omitempty"` // The final sentiment of the sentence
QuotationIndex *int32 `protobuf:"varint,31,opt,name=quotationIndex" json:"quotationIndex,omitempty"` // The index of the quotation this token refers to
ConllUFeatures *MapStringString `protobuf:"bytes,32,opt,name=conllUFeatures" json:"conllUFeatures,omitempty"`
CoarseTag *string `protobuf:"bytes,33,opt,name=coarseTag" json:"coarseTag,omitempty"` // The coarse POS tag (used to store the UPOS tag)
ConllUTokenSpan *Span `protobuf:"bytes,34,opt,name=conllUTokenSpan" json:"conllUTokenSpan,omitempty"`
ConllUMisc *string `protobuf:"bytes,35,opt,name=conllUMisc" json:"conllUMisc,omitempty"`
ConllUSecondaryDeps *MapStringString `protobuf:"bytes,36,opt,name=conllUSecondaryDeps" json:"conllUSecondaryDeps,omitempty"`
WikipediaEntity *string `protobuf:"bytes,37,opt,name=wikipediaEntity" json:"wikipediaEntity,omitempty"`
IsNewline *bool `protobuf:"varint,38,opt,name=isNewline" json:"isNewline,omitempty"`
// Fields set by other annotators in CoreNLP
Gender *string `protobuf:"bytes,51,opt,name=gender" json:"gender,omitempty"` // gender annotation (machine reading)
TrueCase *string `protobuf:"bytes,52,opt,name=trueCase" json:"trueCase,omitempty"` // true case type of token
TrueCaseText *string `protobuf:"bytes,53,opt,name=trueCaseText" json:"trueCaseText,omitempty"` // true case gloss of token
// Chinese character info
ChineseChar *string `protobuf:"bytes,54,opt,name=chineseChar" json:"chineseChar,omitempty"`
ChineseSeg *string `protobuf:"bytes,55,opt,name=chineseSeg" json:"chineseSeg,omitempty"`
ChineseXMLChar *string `protobuf:"bytes,60,opt,name=chineseXMLChar" json:"chineseXMLChar,omitempty"`
// Arabic character info
ArabicSeg *string `protobuf:"bytes,76,opt,name=arabicSeg" json:"arabicSeg,omitempty"`
// Section info
SectionName *string `protobuf:"bytes,56,opt,name=sectionName" json:"sectionName,omitempty"`
SectionAuthor *string `protobuf:"bytes,57,opt,name=sectionAuthor" json:"sectionAuthor,omitempty"`
SectionDate *string `protobuf:"bytes,58,opt,name=sectionDate" json:"sectionDate,omitempty"`
SectionEndLabel *string `protobuf:"bytes,59,opt,name=sectionEndLabel" json:"sectionEndLabel,omitempty"`
// French tokens have parents
Parent *string `protobuf:"bytes,61,opt,name=parent" json:"parent,omitempty"`
// mention index info
CorefMentionIndex []uint32 `protobuf:"varint,64,rep,name=corefMentionIndex" json:"corefMentionIndex,omitempty"`
EntityMentionIndex *uint32 `protobuf:"varint,65,opt,name=entityMentionIndex" json:"entityMentionIndex,omitempty"`
// mwt stuff
IsMWT *bool `protobuf:"varint,67,opt,name=isMWT" json:"isMWT,omitempty"`
IsFirstMWT *bool `protobuf:"varint,68,opt,name=isFirstMWT" json:"isFirstMWT,omitempty"`
MwtText *string `protobuf:"bytes,69,opt,name=mwtText" json:"mwtText,omitempty"`
// number info
NumericValue *uint64 `protobuf:"varint,70,opt,name=numericValue" json:"numericValue,omitempty"`
NumericType *string `protobuf:"bytes,71,opt,name=numericType" json:"numericType,omitempty"`
NumericCompositeValue *uint64 `protobuf:"varint,72,opt,name=numericCompositeValue" json:"numericCompositeValue,omitempty"`
NumericCompositeType *string `protobuf:"bytes,73,opt,name=numericCompositeType" json:"numericCompositeType,omitempty"`
CodepointOffsetBegin *uint32 `protobuf:"varint,74,opt,name=codepointOffsetBegin" json:"codepointOffsetBegin,omitempty"`
CodepointOffsetEnd *uint32 `protobuf:"varint,75,opt,name=codepointOffsetEnd" json:"codepointOffsetEnd,omitempty"`
}
func (x *Token) Reset() {
*x = Token{}
if protoimpl.UnsafeEnabled {
mi := &file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Token) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Token) ProtoMessage() {}
func (x *Token) ProtoReflect() protoreflect.Message {
mi := &file_src_edu_stanford_nlp_pipeline_CoreNLP_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Token.ProtoReflect.Descriptor instead.