Skip to content

Commit bf0bddb

Browse files
stweilzdenop
authored andcommitted
dict: Remove deprecated parameters (#1421)
Signed-off-by: Stefan Weil <[email protected]>
1 parent d13b862 commit bf0bddb

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

dict/dict.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ Dict::Dict(CCUtil *ccutil)
8585
"Default score multiplier for word matches, which may have "
8686
"case issues (lower is better).",
8787
getCCUtil()->params()),
88-
double_MEMBER(segment_penalty_ngram_best_choice, 1.24,
89-
"Multipler to for the best choice from the ngram model.",
90-
getCCUtil()->params()),
9188
double_MEMBER(segment_penalty_dict_nonword, 1.25,
9289
"Score multiplier for glyph fragment segmentations which "
9390
"do not match a dictionary word (lower is better).",
@@ -135,9 +132,6 @@ Dict::Dict(CCUtil *ccutil)
135132
"Make AcceptableChoice() always return false. Useful"
136133
" when there is a need to explore all segmentations",
137134
getCCUtil()->params()),
138-
BOOL_MEMBER(save_raw_choices, false,
139-
"Deprecated- backward compatibility only",
140-
getCCUtil()->params()),
141135
INT_MEMBER(tessedit_truncate_wordchoice_log, 10,
142136
"Max words to keep in list", getCCUtil()->params()),
143137
STRING_MEMBER(word_to_debug, "",

dict/dict.h

-6
Original file line numberDiff line numberDiff line change
@@ -587,10 +587,6 @@ class Dict {
587587
"Default score multiplier for word matches, which may have "
588588
"case issues (lower is better).");
589589

590-
// TODO(daria): remove this param when ngram permuter is deprecated.
591-
double_VAR_H(segment_penalty_ngram_best_choice, 1.24,
592-
"Multipler to for the best choice from the ngram model.");
593-
594590
double_VAR_H(segment_penalty_dict_nonword, 1.25,
595591
"Score multiplier for glyph fragment segmentations which "
596592
"do not match a dictionary word (lower is better).");
@@ -623,8 +619,6 @@ class Dict {
623619
BOOL_VAR_H(stopper_no_acceptable_choices, false,
624620
"Make AcceptableChoice() always return false. Useful"
625621
" when there is a need to explore all segmentations");
626-
BOOL_VAR_H(save_raw_choices, false,
627-
"Deprecated- backward compatibility only");
628622
INT_VAR_H(tessedit_truncate_wordchoice_log, 10, "Max words to keep in list");
629623
STRING_VAR_H(word_to_debug, "", "Word for which stopper debug information"
630624
" should be printed to stdout");

0 commit comments

Comments
 (0)