Skip to content

Commit

Permalink
Added post_correction_apply_user_history_mode.
Browse files Browse the repository at this point in the history
We will apply post correction to the user history candidate with retricted conditions.

PiperOrigin-RevId: 642979777
  • Loading branch information
taku910 authored and hiroyuki-komatsu committed Jun 13, 2024
1 parent e681497 commit 42a8ef6
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/protocol/commands.proto
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ message Capability {
[default = NO_TEXT_DELETION_CAPABILITY];
}

// Next ID: 81
// Next ID: 82
// 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 Down Expand Up @@ -647,22 +647,6 @@ message DecoderExperimentParams {
// Fix the bug on the literal_on_top correction.
optional bool fix_literal_on_top = 65 [default = false];

// Post correction parameters.
// Maximum context length. Note this is not a character length, but the
// token length. Larger size would yield larger latency penalties.
// When zero, default setting is used.
optional int32 post_correction_max_context_size = 75 [default = 0];

// Maximum number of unique corrections. When zero, default setting is used.
optional int32 post_correction_max_correction_size = 76 [default = 0];

// Maximum number of corrections per query. When zero, default setting is
// used.
optional int32 post_correction_nbest_size = 79 [default = 0];

// Uses the surrounding context information fed from the client.
optional bool post_correction_use_surrounding_context = 77 [default = false];

// Remove user history prediction entry when its selected ratio is lower
// than the value.
optional float user_history_prediction_min_selected_ratio = 78
Expand Down

0 comments on commit 42a8ef6

Please sign in to comment.