diff --git a/src/api/baseapi.cpp b/src/api/baseapi.cpp index 56956ef5c9..b26aaed6b2 100644 --- a/src/api/baseapi.cpp +++ b/src/api/baseapi.cpp @@ -1561,7 +1561,7 @@ char* TessBaseAPI::GetHOCRText(ETEXT_DESC* monitor, int page_number) { // Now, process the word... std::vector>>* confidencemap = nullptr; if (tesseract_->lstm_choice_mode) { - confidencemap = res_it->GetBestLSTMChoices(); + confidencemap = res_it->GetBestLSTMSymbolChoices(); } hocr_str += "\n >>* ResultIterator::GetBestLSTMChoices() const { +std::vector>>* ResultIterator::GetBestLSTMSymbolChoices() const { if (it_->word() != nullptr) { return &it_->word()->timesteps; } else { diff --git a/src/ccmain/resultiterator.h b/src/ccmain/resultiterator.h index 073388827d..b658e5a0fc 100644 --- a/src/ccmain/resultiterator.h +++ b/src/ccmain/resultiterator.h @@ -100,7 +100,7 @@ class TESS_API ResultIterator : public LTRResultIterator { /** * Returns the LSTM choices for every LSTM timestep for the current word. */ - virtual std::vector>>* GetBestLSTMChoices() const; + virtual std::vector>>* GetBestLSTMSymbolChoices() const; /** * Return whether the current paragraph's dominant reading direction