Skip to content

Commit

Permalink
Add an interface for the CoreNLP conversion from English constituenci…
Browse files Browse the repository at this point in the history
…es to dependencies. Only works for English. Not currently unit tested (obviously tested during development) because it requires a new CoreNLP release first

Return the doc after processing - makes it more pipelineable
  • Loading branch information
AngledLuffa committed Jan 11, 2023
1 parent 8774658 commit 0987794
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 7 deletions.
18 changes: 18 additions & 0 deletions doc/CoreNLP.proto
Expand Up @@ -779,3 +779,21 @@ message MorphologyResponse {

repeated WordTagLemma words = 1;
}


// A request for converting constituency trees to dependency graphs
message DependencyConverterRequest {
repeated FlattenedParseTree trees = 1;
}

// The result of using the CoreNLP dependency converter.
// One graph per tree
message DependencyConverterResponse {
message DependencyConversion {
required DependencyGraph graph = 1;
optional FlattenedParseTree tree = 2;
}

repeated DependencyConversion conversions = 1;
}

0 comments on commit 0987794

Please sign in to comment.