Commit c9252079 for tesseract
commit c925207937198dda3a218d5f719a4b7ba2a4b755
Author: Stefan Weil <sw@weilnetz.de>
Date: Sat Jun 20 19:28:38 2026 +0200
Remove more unused function parameters
Signed-off-by: Stefan Weil <sw@weilnetz.de>
diff --git a/src/ccmain/control.cpp b/src/ccmain/control.cpp
index bb03492f..fde87e9b 100644
--- a/src/ccmain/control.cpp
+++ b/src/ccmain/control.cpp
@@ -1417,7 +1417,7 @@ void Tesseract::classify_word_pass1(const WordData &word_data, WERD_RES **in_wor
#ifndef DISABLED_LEGACY_ENGINE
WERD_RES *word = *in_word;
- match_word_pass_n(1, word, row);
+ match_word_pass_n(1, word);
if (!word->tess_failed && !word->word->flag(W_REP_CHAR)) {
word->tess_would_adapt = AdaptableWord(word);
bool adapt_ok = word_adaptable(word, tessedit_tess_adaption_mode);
@@ -1506,7 +1506,7 @@ bool Tesseract::TestNewNormalization(int original_misfits, float baseline_shift,
new_x_ht_word.SetupForRecognition(unicharset, this, BestPix(), tessedit_ocr_engine_mode, nullptr,
classify_bln_numeric_mode, textord_use_cjk_fp_model,
poly_allow_detailed_fx, row, block);
- match_word_pass_n(2, &new_x_ht_word, row);
+ match_word_pass_n(2, &new_x_ht_word);
if (!new_x_ht_word.tess_failed) {
int new_misfits = CountMisfitTops(&new_x_ht_word);
if (debug_x_ht_level >= 1) {
@@ -1558,7 +1558,7 @@ void Tesseract::classify_word_pass2(const WordData &word_data, WERD_RES **in_wor
if (word->x_height == 0.0f) {
word->x_height = row->x_height();
}
- match_word_pass_n(2, word, row);
+ match_word_pass_n(2, word);
check_debug_pt(word, 40);
}
@@ -1593,7 +1593,7 @@ void Tesseract::classify_word_pass2(const WordData &word_data, WERD_RES **in_wor
*
* Baseline normalize the word and pass it to Tess.
*/
-void Tesseract::match_word_pass_n(int pass_n, WERD_RES *word, ROW *row) {
+void Tesseract::match_word_pass_n(int pass_n, WERD_RES *word) {
if (word->tess_failed) {
return;
}
diff --git a/src/ccmain/osdetect.cpp b/src/ccmain/osdetect.cpp
index 3a1071ae..95fa5c9a 100644
--- a/src/ccmain/osdetect.cpp
+++ b/src/ccmain/osdetect.cpp
@@ -187,7 +187,7 @@ int orientation_and_script_detection(const char *filename, OSResults *osr,
int height = pixGetHeight(tess->pix_binary());
BLOCK_LIST blocks;
- if (!read_unlv_file(name, width, height, &blocks)) {
+ if (!read_unlv_file(name, height, &blocks)) {
FullPageBlock(width, height, &blocks);
}
@@ -312,7 +312,8 @@ int os_detect_blobs(const std::vector<int> *allowed_scripts, BLOBNBOX_CLIST *blo
// Processes a single blob to estimate script and orientation.
// Return true if estimate of orientation and script satisfies stopping
// criteria.
-bool os_detect_blob(BLOBNBOX *bbox, OrientationDetector *o, ScriptDetector *s, OSResults *osr,
+bool os_detect_blob(BLOBNBOX *bbox, OrientationDetector *o,
+ ScriptDetector *s, OSResults */*osr*/,
tesseract::Tesseract *tess) {
tess->tess_cn_matching.set_value(true); // turn it on
tess->tess_bn_matching.set_value(false);
diff --git a/src/ccmain/pagesegmain.cpp b/src/ccmain/pagesegmain.cpp
index cd148704..3efd37af 100644
--- a/src/ccmain/pagesegmain.cpp
+++ b/src/ccmain/pagesegmain.cpp
@@ -112,7 +112,7 @@ int Tesseract::SegmentPage(const char *input_file, BLOCK_LIST *blocks, Tesseract
if (lastdot != std::string::npos) {
name.resize(lastdot);
}
- read_unlv_file(name, width, height, blocks);
+ read_unlv_file(name, height, blocks);
}
if (blocks->empty()) {
// No UNLV file present. Work according to the PageSegMode.
diff --git a/src/ccmain/pgedit.cpp b/src/ccmain/pgedit.cpp
index b3028a02..c0075909 100644
--- a/src/ccmain/pgedit.cpp
+++ b/src/ccmain/pgedit.cpp
@@ -879,7 +879,7 @@ bool Tesseract::word_dumper(PAGE_RES_IT *pr_it) {
pr_it->block()->block->print(nullptr, false);
}
tprintf("\nRow data...\n");
- pr_it->row()->row->print(nullptr);
+ pr_it->row()->row->print();
tprintf("\nWord data...\n");
WERD_RES *word_res = pr_it->word();
word_res->word->print();
diff --git a/src/ccmain/tessedit.cpp b/src/ccmain/tessedit.cpp
index f5e7cce3..635fccae 100644
--- a/src/ccmain/tessedit.cpp
+++ b/src/ccmain/tessedit.cpp
@@ -283,7 +283,11 @@ void Tesseract::ParseLanguageString(const std::string &lang_str, std::vector<std
// Initialize for potentially a set of languages defined by the language
// string and recursively any additional languages required by any language
// traineddata file (via tessedit_load_sublangs in its config) that is loaded.
-// See init_tesseract_internal for args.
+// arg0 is the datapath for the tessdata directory, which could be the
+// path of the tessdata directory with no trailing /, or (if tessdata
+// lives in the same directory as the executable, the path of the executable,
+// hence the name arg0.
+// See init_tesseract_internal for remaining args.
int Tesseract::init_tesseract(const std::string &arg0, const std::string &textbase,
const std::string &language, OcrEngineMode oem, char **configs,
int configs_size, const std::vector<std::string> *vars_vec,
@@ -319,7 +323,7 @@ int Tesseract::init_tesseract(const std::string &arg0, const std::string &textba
tess_to_init->main_setup(arg0, textbase);
}
- int result = tess_to_init->init_tesseract_internal(arg0, textbase, lang_str, oem, configs,
+ int result = tess_to_init->init_tesseract_internal(textbase, lang_str, oem, configs,
configs_size, vars_vec, vars_values,
set_only_non_debug_params, mgr);
// Forget that language, but keep any reader we were given.
@@ -376,10 +380,6 @@ int Tesseract::init_tesseract(const std::string &arg0, const std::string &textba
}
// Common initialization for a single language.
-// arg0 is the datapath for the tessdata directory, which could be the
-// path of the tessdata directory with no trailing /, or (if tessdata
-// lives in the same directory as the executable, the path of the executable,
-// hence the name arg0.
// textbase is an optional output file basename (used only for training)
// language is the language code to load.
// oem controls which engine(s) will operate on the image
@@ -391,7 +391,7 @@ int Tesseract::init_tesseract(const std::string &arg0, const std::string &textba
// in vars_vec.
// If set_only_non_debug_params is true, only params that do not contain
// "debug" in the name will be set.
-int Tesseract::init_tesseract_internal(const std::string &arg0, const std::string &textbase,
+int Tesseract::init_tesseract_internal(const std::string &textbase,
const std::string &language, OcrEngineMode oem,
char **configs, int configs_size,
const std::vector<std::string> *vars_vec,
diff --git a/src/ccmain/tesseractclass.h b/src/ccmain/tesseractclass.h
index d68dae8d..55fcb3fe 100644
--- a/src/ccmain/tesseractclass.h
+++ b/src/ccmain/tesseractclass.h
@@ -446,7 +446,7 @@ public:
const char *lengths);
ACCEPTABLE_WERD_TYPE check_abbreviation(const UNICHARSET &char_set, const char *s,
const char *lengths, ACCEPTABLE_WERD_TYPE word_type);
- void match_word_pass_n(int pass_n, WERD_RES *word, ROW *row);
+ void match_word_pass_n(int pass_n, WERD_RES *word);
void classify_word_pass2(const WordData &word_data, WERD_RES **in_word,
PointerVector<WERD_RES> *out_words);
void ReportXhtFixResult(bool accept_new_word, float new_x_ht, WERD_RES *word, WERD_RES *new_word);
@@ -495,7 +495,11 @@ public:
// Initialize for potentially a set of languages defined by the language
// string and recursively any additional languages required by any language
// traineddata file (via tessedit_load_sublangs in its config) that is loaded.
- // See init_tesseract_internal for args.
+ // arg0 is the datapath for the tessdata directory, which could be the
+ // path of the tessdata directory with no trailing /, or (if tessdata
+ // lives in the same directory as the executable, the path of the executable,
+ // hence the name arg0.
+ // See init_tesseract_internal for remaining args.
int init_tesseract(const std::string &arg0, const std::string &textbase,
const std::string &language, OcrEngineMode oem, char **configs,
int configs_size, const std::vector<std::string> *vars_vec,
@@ -506,10 +510,6 @@ public:
return init_tesseract(datapath, {}, language, oem, nullptr, 0, nullptr, nullptr, false, &mgr);
}
// Common initialization for a single language.
- // arg0 is the datapath for the tessdata directory, which could be the
- // path of the tessdata directory with no trailing /, or (if tessdata
- // lives in the same directory as the executable, the path of the executable,
- // hence the name arg0.
// textbase is an optional output file basename (used only for training)
// language is the language code to load.
// oem controls which engine(s) will operate on the image
@@ -521,7 +521,7 @@ public:
// in vars_vec.
// If set_only_non_debug_params is true, only params that do not contain
// "debug" in the name will be set.
- int init_tesseract_internal(const std::string &arg0, const std::string &textbase,
+ int init_tesseract_internal(const std::string &textbase,
const std::string &language, OcrEngineMode oem, char **configs,
int configs_size, const std::vector<std::string> *vars_vec,
const std::vector<std::string> *vars_values,
diff --git a/src/ccmain/tfacepp.cpp b/src/ccmain/tfacepp.cpp
index 8aabf645..bfa1b31e 100644
--- a/src/ccmain/tfacepp.cpp
+++ b/src/ccmain/tfacepp.cpp
@@ -187,8 +187,8 @@ void Tesseract::split_word(WERD_RES *word, unsigned split_pt, WERD_RES **right_p
word2->ClearResults();
word->chopped_word = chopped;
word2->chopped_word = chopped2;
- word->SetupBasicsFromChoppedWord(unicharset);
- word2->SetupBasicsFromChoppedWord(unicharset);
+ word->SetupBasicsFromChoppedWord();
+ word2->SetupBasicsFromChoppedWord();
// Try to adjust the blamer bundle.
if (orig_bb != nullptr) {
diff --git a/src/ccstruct/blamer.cpp b/src/ccstruct/blamer.cpp
index ff7a7c4d..77a323b3 100644
--- a/src/ccstruct/blamer.cpp
+++ b/src/ccstruct/blamer.cpp
@@ -466,7 +466,7 @@ bool BlamerBundle::GuidedSegsearchNeeded(const WERD_CHOICE *best_choice) const {
#if !defined(DISABLED_LEGACY_ENGINE)
// Setup ready to guide the segmentation search to the correct segmentation.
void BlamerBundle::InitForSegSearch(const WERD_CHOICE *best_choice, MATRIX *ratings,
- UNICHAR_ID wildcard_id, bool debug, std::string &debug_str,
+ bool debug, std::string &debug_str,
tesseract::LMPainPoints *pain_points, double max_char_wh_ratio,
WERD_RES *word_res) {
segsearch_is_looking_for_blame_ = true;
@@ -480,8 +480,7 @@ void BlamerBundle::InitForSegSearch(const WERD_CHOICE *best_choice, MATRIX *rati
debug_str += "col=" + std::to_string(correct_segmentation_cols_[idx]);
debug_str += " row=" + std::to_string(correct_segmentation_rows_[idx]);
debug_str += "\n";
- if (!ratings->Classified(correct_segmentation_cols_[idx], correct_segmentation_rows_[idx],
- wildcard_id) &&
+ if (!ratings->Classified(correct_segmentation_cols_[idx], correct_segmentation_rows_[idx]) &&
!pain_points->GeneratePainPoint(
correct_segmentation_cols_[idx], correct_segmentation_rows_[idx],
tesseract::LM_PPTYPE_BLAMER, 0.0, false, max_char_wh_ratio, word_res)) {
diff --git a/src/ccstruct/blamer.h b/src/ccstruct/blamer.h
index 2cfd6a74..4d624683 100644
--- a/src/ccstruct/blamer.h
+++ b/src/ccstruct/blamer.h
@@ -273,7 +273,7 @@ struct BlamerBundle {
// Returns true if a guided segmentation search is needed.
bool GuidedSegsearchNeeded(const WERD_CHOICE *best_choice) const;
// Setup ready to guide the segmentation search to the correct segmentation.
- void InitForSegSearch(const WERD_CHOICE *best_choice, MATRIX *ratings, UNICHAR_ID wildcard_id,
+ void InitForSegSearch(const WERD_CHOICE *best_choice, MATRIX *ratings,
bool debug, std::string &debug_str, tesseract::LMPainPoints *pain_points,
double max_char_wh_ratio, WERD_RES *word_res);
// Returns true if the guided segsearch is in progress.
diff --git a/src/ccstruct/blobbox.cpp b/src/ccstruct/blobbox.cpp
index 19952fce..d40ee074 100644
--- a/src/ccstruct/blobbox.cpp
+++ b/src/ccstruct/blobbox.cpp
@@ -117,7 +117,6 @@ void BLOBNBOX::really_merge(BLOBNBOX *other) {
void BLOBNBOX::chop( // chop blobs
BLOBNBOX_IT *start_it, // location of this
BLOBNBOX_IT *end_it, // iterator
- FCOORD rotation, // for landscape
float xheight // of line
) {
int16_t blobcount; // no of blobs
diff --git a/src/ccstruct/blobbox.h b/src/ccstruct/blobbox.h
index 9915a1ce..c35282e5 100644
--- a/src/ccstruct/blobbox.h
+++ b/src/ccstruct/blobbox.h
@@ -198,7 +198,6 @@ public:
void chop( // fake chop blob
BLOBNBOX_IT *start_it, // location of this
BLOBNBOX_IT *blob_it, // iterator
- FCOORD rotation, // for landscape
float xheight); // line height
void NeighbourGaps(int gaps[BND_COUNT]) const;
diff --git a/src/ccstruct/blobs.cpp b/src/ccstruct/blobs.cpp
index 1d2ec145..3ac63718 100644
--- a/src/ccstruct/blobs.cpp
+++ b/src/ccstruct/blobs.cpp
@@ -1341,7 +1341,7 @@ TWERD *TWERD::PolygonalCopy(bool allow_detailed_fx, WERD *src) {
// Baseline normalizes the blobs in-place, recording the normalization in the
// DENORMs in the blobs.
void TWERD::BLNormalize(const BLOCK *block, const ROW *row, Image pix, bool inverse, float x_height,
- float baseline_shift, bool numeric_mode, tesseract::OcrEngineMode hint,
+ float baseline_shift, bool numeric_mode,
const TBOX *norm_box, DENORM *word_denorm) {
TBOX word_box = bounding_box();
if (norm_box != nullptr) {
diff --git a/src/ccstruct/blobs.h b/src/ccstruct/blobs.h
index fd2eb2a3..49a24b3b 100644
--- a/src/ccstruct/blobs.h
+++ b/src/ccstruct/blobs.h
@@ -436,7 +436,7 @@ struct TWERD {
// Baseline normalizes the blobs in-place, recording the normalization in the
// DENORMs in the blobs.
void BLNormalize(const BLOCK *block, const ROW *row, Image pix, bool inverse, float x_height,
- float baseline_shift, bool numeric_mode, tesseract::OcrEngineMode hint,
+ float baseline_shift, bool numeric_mode,
const TBOX *norm_box, DENORM *word_denorm);
// Copies the data and the blobs, but leaves next untouched.
void CopyFrom(const TWERD &src);
diff --git a/src/ccstruct/blread.cpp b/src/ccstruct/blread.cpp
index 219e5001..fd851ca4 100644
--- a/src/ccstruct/blread.cpp
+++ b/src/ccstruct/blread.cpp
@@ -35,7 +35,6 @@ namespace tesseract {
bool read_unlv_file( // print list of sides
std::string &name, // basename of file
- int32_t xsize, // image size
int32_t ysize, // image size
BLOCK_LIST *blocks // output list
) {
diff --git a/src/ccstruct/blread.h b/src/ccstruct/blread.h
index 9876e870..e57d1f68 100644
--- a/src/ccstruct/blread.h
+++ b/src/ccstruct/blread.h
@@ -28,7 +28,6 @@ class BLOCK_LIST;
bool read_unlv_file( // print list of sides
std::string &name, // basename of file
- int32_t xsize, // image size
int32_t ysize, // image size
BLOCK_LIST *blocks // output list
);
diff --git a/src/ccstruct/matrix.cpp b/src/ccstruct/matrix.cpp
index 050d2f22..51b69739 100644
--- a/src/ccstruct/matrix.cpp
+++ b/src/ccstruct/matrix.cpp
@@ -33,7 +33,7 @@ namespace tesseract {
MATRIX::~MATRIX() = default;
// Returns true if there are any real classification results.
-bool MATRIX::Classified(int col, int row, int wildcard_id) const {
+bool MATRIX::Classified(int col, int row) const {
if (get(col, row) == NOT_CLASSIFIED) {
return false;
}
diff --git a/src/ccstruct/matrix.h b/src/ccstruct/matrix.h
index 7fa344e7..84f49c18 100644
--- a/src/ccstruct/matrix.h
+++ b/src/ccstruct/matrix.h
@@ -662,7 +662,7 @@ public:
~MATRIX() override;
// Returns true if there are any real classification results.
- bool Classified(int col, int row, int wildcard_id) const;
+ bool Classified(int col, int row) const;
// Expands the existing matrix in-place to make the band wider, without
// losing any existing data.
diff --git a/src/ccstruct/ocrrow.cpp b/src/ccstruct/ocrrow.cpp
index a2c284eb..e65f3ebe 100644
--- a/src/ccstruct/ocrrow.cpp
+++ b/src/ccstruct/ocrrow.cpp
@@ -164,9 +164,7 @@ void ROW::move( // reposition row
* Display members
**********************************************************************/
-void ROW::print( // print
- FILE *fp // file to print on
-) const {
+void ROW::print() const {
tprintf("Kerning= %d\n", kerning);
tprintf("Spacing= %d\n", spacing);
bound_box.print();
diff --git a/src/ccstruct/ocrrow.h b/src/ccstruct/ocrrow.h
index 637cb0c5..48fedea1 100644
--- a/src/ccstruct/ocrrow.h
+++ b/src/ccstruct/ocrrow.h
@@ -126,8 +126,7 @@ public:
void move( // reposition row
const ICOORD vec); // by vector
- void print( // print
- FILE *fp) const; // file to print on
+ void print() const; // print
#ifndef GRAPHICS_DISABLED
void plot( // draw one
diff --git a/src/ccstruct/pageres.cpp b/src/ccstruct/pageres.cpp
index 4b52e76a..3d07ad19 100644
--- a/src/ccstruct/pageres.cpp
+++ b/src/ccstruct/pageres.cpp
@@ -329,9 +329,9 @@ bool WERD_RES::SetupForRecognition(const UNICHARSET &unicharset_in,
: x_height;
chopped_word->BLNormalize(block, row, pix, word->flag(W_INVERSE),
word_xheight, baseline_shift, numeric_mode,
- norm_mode_hint, norm_box, &denorm);
+ norm_box, &denorm);
blob_row = row;
- SetupBasicsFromChoppedWord(unicharset_in);
+ SetupBasicsFromChoppedWord();
SetupBlamerBundle();
int num_blobs = chopped_word->NumBlobs();
ratings = new MATRIX(num_blobs, kWordrecMaxNumJoinChunks);
@@ -342,7 +342,7 @@ bool WERD_RES::SetupForRecognition(const UNICHARSET &unicharset_in,
// Set up the seam array, bln_boxes, best_choice, and raw_choice to empty
// accumulators from a made chopped word. We presume the fields are already
// empty.
-void WERD_RES::SetupBasicsFromChoppedWord(const UNICHARSET &unicharset_in) {
+void WERD_RES::SetupBasicsFromChoppedWord() {
bln_boxes = tesseract::BoxWord::CopyFromNormalized(chopped_word);
start_seam_list(chopped_word, &seam_array);
SetupBlobWidthsAndGaps();
diff --git a/src/ccstruct/pageres.h b/src/ccstruct/pageres.h
index c7176f7a..63759488 100644
--- a/src/ccstruct/pageres.h
+++ b/src/ccstruct/pageres.h
@@ -478,7 +478,7 @@ public:
// Set up the seam array, bln_boxes, best_choice, and raw_choice to empty
// accumulators from a made chopped word. We presume the fields are already
// empty.
- void SetupBasicsFromChoppedWord(const UNICHARSET &unicharset_in);
+ void SetupBasicsFromChoppedWord();
// Sets up the members used in recognition for an empty recognition result:
// bln_boxes, chopped_word, seam_array, denorm, best_choice, raw_choice.
diff --git a/src/ccutil/unichar.cpp b/src/ccutil/unichar.cpp
index 53743150..ae6d6133 100644
--- a/src/ccutil/unichar.cpp
+++ b/src/ccutil/unichar.cpp
@@ -206,7 +206,7 @@ bool UNICHAR::const_iterator::is_legal() const {
return utf8_step(it_) > 0;
}
-UNICHAR::const_iterator UNICHAR::begin(const char *utf8_str, int len) {
+UNICHAR::const_iterator UNICHAR::begin(const char *utf8_str, int /*len*/) {
return UNICHAR::const_iterator(utf8_str);
}
diff --git a/src/textord/makerow.cpp b/src/textord/makerow.cpp
index f1c2f10a..f067ecaf 100644
--- a/src/textord/makerow.cpp
+++ b/src/textord/makerow.cpp
@@ -1888,7 +1888,7 @@ void pre_associate_blobs( // make rough chars
}
}
} while (overlap);
- blob->chop(&start_it, &blob_it, blob_rotation,
+ blob->chop(&start_it, &blob_it,
block->line_size * tesseract::CCStruct::kXHeightFraction * textord_chop_width);
// attempt chop
}
diff --git a/src/wordrec/lm_pain_points.cpp b/src/wordrec/lm_pain_points.cpp
index 486525ae..c882b923 100644
--- a/src/wordrec/lm_pain_points.cpp
+++ b/src/wordrec/lm_pain_points.cpp
@@ -60,9 +60,9 @@ void LMPainPoints::GenerateInitial(WERD_RES *word_res) {
continue;
}
// Add an initial pain point if needed.
- if (ratings->Classified(col, row - 1, dict_->WildcardID()) ||
+ if (ratings->Classified(col, row - 1) ||
(col + 1 < ratings->dimension() &&
- ratings->Classified(col + 1, row, dict_->WildcardID()))) {
+ ratings->Classified(col + 1, row))) {
GeneratePainPoint(col, row, LM_PPTYPE_SHAPE, 0.0, true, max_char_wh_ratio_, word_res);
}
}
@@ -95,7 +95,7 @@ void LMPainPoints::GenerateFromPath(float rating_cert_scale, ViterbiStateEntry *
const MATRIX_COORD &parent_cell = parent_vse->curr_b->matrix_cell();
MATRIX_COORD pain_coord(parent_cell.col, curr_cell.row);
if (!pain_coord.Valid(*word_res->ratings) ||
- !word_res->ratings->Classified(parent_cell.col, curr_cell.row, dict_->WildcardID())) {
+ !word_res->ratings->Classified(parent_cell.col, curr_cell.row)) {
// rat_subtr contains ratings sum of the two adjacent blobs to be merged.
// rat_subtr will be subtracted from the ratings sum of the path, since
// the blobs will be joined into a new blob, whose rating is yet unknown.
@@ -144,7 +144,7 @@ bool LMPainPoints::GeneratePainPoint(int col, int row, LMPainPointsType pp_type,
float max_char_wh_ratio, WERD_RES *word_res) {
MATRIX_COORD coord(col, row);
if (coord.Valid(*word_res->ratings) &&
- word_res->ratings->Classified(col, row, dict_->WildcardID())) {
+ word_res->ratings->Classified(col, row)) {
return false;
}
if (debug_level_ > 3) {
diff --git a/src/wordrec/segsearch.cpp b/src/wordrec/segsearch.cpp
index 6a8791bf..2735c6dd 100644
--- a/src/wordrec/segsearch.cpp
+++ b/src/wordrec/segsearch.cpp
@@ -70,7 +70,7 @@ void Wordrec::SegSearch(WERD_RES *word_res, BestChoiceBundle *best_choice_bundle
word_res->ratings->IncreaseBandSize(pain_point.row - pain_point.col + 1);
}
if (pain_point.Valid(*word_res->ratings) &&
- !word_res->ratings->Classified(pain_point.col, pain_point.row, getDict().WildcardID())) {
+ !word_res->ratings->Classified(pain_point.col, pain_point.row)) {
found_nothing = false;
break;
}
@@ -296,7 +296,7 @@ void Wordrec::ResetNGramSearch(WERD_RES *word_res, BestChoiceBundle *best_choice
void Wordrec::InitBlamerForSegSearch(WERD_RES *word_res, LMPainPoints *pain_points,
BlamerBundle *blamer_bundle, std::string &blamer_debug) {
pain_points->Clear(); // Clear pain points heap.
- blamer_bundle->InitForSegSearch(word_res->best_choice, word_res->ratings, getDict().WildcardID(),
+ blamer_bundle->InitForSegSearch(word_res->best_choice, word_res->ratings,
wordrec_debug_blamer, blamer_debug, pain_points,
segsearch_max_char_wh_ratio, word_res);
}