Skip to content

Commit

Permalink
dict: Remove deprecated parameters (#1421)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil authored and zdenop committed Mar 25, 2018
1 parent d13b862 commit bf0bddb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions dict/dict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ Dict::Dict(CCUtil *ccutil)
"Default score multiplier for word matches, which may have "
"case issues (lower is better).",
getCCUtil()->params()),
double_MEMBER(segment_penalty_ngram_best_choice, 1.24,
"Multipler to for the best choice from the ngram model.",
getCCUtil()->params()),
double_MEMBER(segment_penalty_dict_nonword, 1.25,
"Score multiplier for glyph fragment segmentations which "
"do not match a dictionary word (lower is better).",
Expand Down Expand Up @@ -135,9 +132,6 @@ Dict::Dict(CCUtil *ccutil)
"Make AcceptableChoice() always return false. Useful"
" when there is a need to explore all segmentations",
getCCUtil()->params()),
BOOL_MEMBER(save_raw_choices, false,
"Deprecated- backward compatibility only",
getCCUtil()->params()),
INT_MEMBER(tessedit_truncate_wordchoice_log, 10,
"Max words to keep in list", getCCUtil()->params()),
STRING_MEMBER(word_to_debug, "",
Expand Down
6 changes: 0 additions & 6 deletions dict/dict.h
Original file line number Diff line number Diff line change
Expand Up @@ -587,10 +587,6 @@ class Dict {
"Default score multiplier for word matches, which may have "
"case issues (lower is better).");

// TODO(daria): remove this param when ngram permuter is deprecated.
double_VAR_H(segment_penalty_ngram_best_choice, 1.24,
"Multipler to for the best choice from the ngram model.");

double_VAR_H(segment_penalty_dict_nonword, 1.25,
"Score multiplier for glyph fragment segmentations which "
"do not match a dictionary word (lower is better).");
Expand Down Expand Up @@ -623,8 +619,6 @@ class Dict {
BOOL_VAR_H(stopper_no_acceptable_choices, false,
"Make AcceptableChoice() always return false. Useful"
" when there is a need to explore all segmentations");
BOOL_VAR_H(save_raw_choices, false,
"Deprecated- backward compatibility only");
INT_VAR_H(tessedit_truncate_wordchoice_log, 10, "Max words to keep in list");
STRING_VAR_H(word_to_debug, "", "Word for which stopper debug information"
" should be printed to stdout");
Expand Down

0 comments on commit bf0bddb

Please sign in to comment.