ool.languagetool-core.4.9.source-code.bert-lm.proto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of languagetool-core Show documentation
Show all versions of languagetool-core Show documentation
LanguageTool is an Open Source proofreading software for English, French, German, Polish, Romanian, and more than 20 other languages. It finds many errors that a simple spell checker cannot detect like mixing up there/their and it detects some grammar problems.
syntax = "proto3";
package bert;
option java_package = "org.languagetool.languagemodel.bert.grpc";
option java_outer_classname = "BertLmProto";
service BertLm {
rpc Score (ScoreRequest) returns (BertLmResponse);
rpc BatchScore (BatchScoreRequest) returns (BatchBertLmResponse);
}
message Mask {
uint32 start = 1;
uint32 end = 2;
repeated string candidates = 3;
}
message ScoreRequest {
string text = 1;
repeated Mask mask = 2;
}
message Prediction {
repeated double score = 1;
}
message BertLmResponse {
repeated Prediction scores = 1;
}
message BatchScoreRequest {
repeated ScoreRequest requests = 1;
}
message BatchBertLmResponse {
repeated BertLmResponse responses = 1;
}