All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ool.languagetool-core.5.7.source-code.bert-lm.proto Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 6.5
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy