public final class GRPCUtils extends Object
Constructor and Description |
---|
GRPCUtils() |
Modifier and Type | Method and Description |
---|---|
static AnalyzedSentence |
fromGRPC(MLServerProto.AnalyzedSentence sentence) |
static AnalyzedToken |
fromGRPC(MLServerProto.AnalyzedToken token) |
static AnalyzedTokenReadings |
fromGRPC(MLServerProto.AnalyzedTokenReadings tokenReadings) |
static RuleMatch |
fromGRPC(MLServerProto.Match m,
AnalyzedSentence s) |
static JLanguageTool.Level |
fromGRPC(MLServerProto.ProcessingOptions.Level l) |
static SuggestedReplacement |
fromGRPC(MLServerProto.SuggestedReplacement s) |
static String |
getUrl(RuleMatch m) |
static MLServerProto.AnalyzedSentence |
toGRPC(AnalyzedSentence sentence) |
static MLServerProto.AnalyzedToken |
toGRPC(AnalyzedToken token) |
static MLServerProto.AnalyzedTokenReadings |
toGRPC(AnalyzedTokenReadings readings) |
static MLServerProto.ProcessingOptions.Level |
toGRPC(JLanguageTool.Level level) |
static MLServerProto.Match |
toGRPC(RuleMatch m) |
static MLServerProto.SuggestedReplacement |
toGRPC(SuggestedReplacement s) |
public static MLServerProto.AnalyzedToken toGRPC(AnalyzedToken token)
public static MLServerProto.AnalyzedTokenReadings toGRPC(AnalyzedTokenReadings readings)
public static MLServerProto.AnalyzedSentence toGRPC(AnalyzedSentence sentence)
public static AnalyzedTokenReadings fromGRPC(MLServerProto.AnalyzedTokenReadings tokenReadings)
public static AnalyzedToken fromGRPC(MLServerProto.AnalyzedToken token)
public static AnalyzedSentence fromGRPC(MLServerProto.AnalyzedSentence sentence)
public static MLServerProto.Match toGRPC(RuleMatch m)
public static RuleMatch fromGRPC(MLServerProto.Match m, AnalyzedSentence s)
public static MLServerProto.SuggestedReplacement toGRPC(SuggestedReplacement s)
public static SuggestedReplacement fromGRPC(MLServerProto.SuggestedReplacement s)
public static JLanguageTool.Level fromGRPC(MLServerProto.ProcessingOptions.Level l)
public static MLServerProto.ProcessingOptions.Level toGRPC(JLanguageTool.Level level)