Skip to content

Commit 71bc95d

Browse files
committed
Add a processor which adds lemmas to word_tag
1 parent 3d6587d commit 71bc95d

File tree

4 files changed

+3610
-12
lines changed

4 files changed

+3610
-12
lines changed

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

+21
Original file line numberDiff line numberDiff line change
@@ -758,3 +758,24 @@ message TsurgeonRequest {
758758
message TsurgeonResponse {
759759
repeated FlattenedParseTree trees = 1;
760760
}
761+
762+
// Sent in Morphology requests - a stream of sentences with tagged words
763+
message MorphologyRequest {
764+
message TaggedWord {
765+
required string word = 1;
766+
optional string xpos = 2;
767+
}
768+
769+
repeated TaggedWord words = 1;
770+
}
771+
772+
// Sent back from the Morphology request - the words and their tags
773+
message MorphologyResponse {
774+
message WordTagLemma {
775+
required string word = 1;
776+
optional string xpos = 2;
777+
required string lemma = 3;
778+
}
779+
780+
repeated WordTagLemma words = 1;
781+
}

0 commit comments

Comments
 (0)