Skip to content

Commit be96b61

Browse files
Angel ChangAngledLuffa
authored andcommitted
Add speakerType and speaker/speakerType to sentences
1 parent 980f2f8 commit be96b61

File tree

4 files changed

+1428
-720
lines changed

4 files changed

+1428
-720
lines changed

src/edu/stanford/nlp/pipeline/CoreNLP.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ message Sentence {
136136
// the quote annotator can soometimes add merged sentences
137137
optional Sentence enhancedSentence = 70;
138138

139+
// speaker stuff
140+
optional string speaker = 71; // The speaker speaking this sentence
141+
optional string speakerType = 72; // The type of speaker speaking this sentence
142+
139143
extensions 100 to 255;
140144
}
141145

@@ -161,6 +165,7 @@ message Token {
161165
optional uint32 endChar = 12; // The character offset end, in the document
162166
optional uint32 utterance = 13; // The utterance tag used in dcoref
163167
optional string speaker = 14; // The speaker speaking this word
168+
optional string speakerType = 77; // The type of speaker speaking this word
164169
optional uint32 beginIndex = 15; // The begin index of, e.g., a span
165170
optional uint32 endIndex = 16; // The begin index of, e.g., a span
166171
optional uint32 tokenBeginIndex = 17; // The begin index of the token

0 commit comments

Comments
 (0)