Skip to content

Commit

Permalink
Add a processor which adds lemmas to word_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Oct 14, 2022
1 parent 3d6587d commit 71bc95d
Show file tree
Hide file tree
Showing 4 changed files with 3,610 additions and 12 deletions.
21 changes: 21 additions & 0 deletions src/edu/stanford/nlp/pipeline/CoreNLP.proto
Expand Up @@ -758,3 +758,24 @@ message TsurgeonRequest {
message TsurgeonResponse {
repeated FlattenedParseTree trees = 1;
}

// Sent in Morphology requests - a stream of sentences with tagged words
message MorphologyRequest {
message TaggedWord {
required string word = 1;
optional string xpos = 2;
}

repeated TaggedWord words = 1;
}

// Sent back from the Morphology request - the words and their tags
message MorphologyResponse {
message WordTagLemma {
required string word = 1;
optional string xpos = 2;
required string lemma = 3;
}

repeated WordTagLemma words = 1;
}

0 comments on commit 71bc95d

Please sign in to comment.