From bf0bddb9caca4259ae1c89f10975ca9e9d92b3bb Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 25 Mar 2018 17:32:35 +0200 Subject: [PATCH] dict: Remove deprecated parameters (#1421) Signed-off-by: Stefan Weil --- dict/dict.cpp | 6 ------ dict/dict.h | 6 ------ 2 files changed, 12 deletions(-) diff --git a/dict/dict.cpp b/dict/dict.cpp index 4770e31835..427af27f6c 100644 --- a/dict/dict.cpp +++ b/dict/dict.cpp @@ -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).", @@ -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, "", diff --git a/dict/dict.h b/dict/dict.h index 378c44014f..409909ae9e 100644 --- a/dict/dict.h +++ b/dict/dict.h @@ -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)."); @@ -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");