Skip to content

Commit

Permalink
Suppress false-positive corrections with surrounding context.
Browse files Browse the repository at this point in the history
When TC is triggered, this module aggregates at most top 6 (3+3) literal and TC candidates with the same key. Then, run NSC reranker to decide literal-on-top.

This feature has multiple mode
1. Only runs literal-on-top while keeping the original ranking.
2. Promote the predicted literal candidate that has the highest reranker score.
3. Promotes the predicted TC candidate too.

PiperOrigin-RevId: 685995877
  • Loading branch information
taku910 authored and hiroyuki-komatsu committed Oct 15, 2024
1 parent 90b0e0b commit 95cfeaf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/protocol/commands.proto
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ message Capability {
[default = NO_TEXT_DELETION_CAPABILITY];
}

// Next ID: 100
// Next ID: 102
// Bundles together some Android experiment flags so that they can be easily
// retrieved throughout the native code. These flags are generally specific to
// the decoder, and are made available when the decoder is initialized.
Expand All @@ -597,6 +597,15 @@ message DecoderExperimentParams {
// If zero, the previous implementation is used.
optional int32 typing_correction_result_reranker_mode = 95 [default = 0];

// Promote TC/Literal if w * tc_reranker_score + (1.0 - w) lm_diff > 0.0.
optional float typing_correction_result_reranker_interpolation_weight = 100
[default = 0.0];

// Runs Literal-at-least second when original_tc_score + w * tc_reranker_score
// > 0.0. otherwise, runs literal-on-top.
optional float typing_correction_result_reranker_literal_on_top_weight = 101
[default = 0.0];

// Uses the typing correction in user history predictor. The size specifies
// the maximum number of typing corrections used for query lookup.
// When zero, typing_correction is not used.
Expand Down

0 comments on commit 95cfeaf

Please sign in to comment.