public class GRPCPostProcessing extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_TYPE |
Modifier | Constructor and Description |
---|---|
protected |
GRPCPostProcessing(RemoteRuleConfig config) |
Modifier and Type | Method and Description |
---|---|
static void |
configure(Language lang,
List<RemoteRuleConfig> configs) |
List<RuleMatch> |
filter(List<AnalyzedSentence> sentences,
List<RuleMatch> ruleMatches,
Long textSessionID,
boolean inputLogging) |
static List<GRPCPostProcessing> |
get(Language lang) |
protected List<RuleMatch> |
runPostprocessing(List<AnalyzedSentence> sentences,
List<RuleMatch> ruleMatches,
Long textSessionID,
boolean inputLogging,
int chars) |
protected MLServerProto.MatchResponse |
sendRequest(MLServerProto.PostProcessingRequest req,
long timeout) |
public static final String CONFIG_TYPE
protected GRPCPostProcessing(RemoteRuleConfig config) throws Exception
Exception
@NotNull public static List<GRPCPostProcessing> get(Language lang)
public static void configure(Language lang, List<RemoteRuleConfig> configs)
public List<RuleMatch> filter(List<AnalyzedSentence> sentences, List<RuleMatch> ruleMatches, Long textSessionID, boolean inputLogging)
protected MLServerProto.MatchResponse sendRequest(MLServerProto.PostProcessingRequest req, long timeout) throws Exception
Exception