mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-08 02:12:40 +08:00
lm_pain_points.cpp lm_state.cpp
This commit is contained in:
parent
a58a4e0f7b
commit
fa85709823
@ -202,8 +202,10 @@ bool LMPainPoints::GeneratePainPoint(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adjusts the pain point coordinates to cope with expansion of the ratings
|
/**
|
||||||
// matrix due to a split of the blob with the given index.
|
* Adjusts the pain point coordinates to cope with expansion of the ratings
|
||||||
|
* matrix due to a split of the blob with the given index.
|
||||||
|
*/
|
||||||
void LMPainPoints::RemapForSplit(int index) {
|
void LMPainPoints::RemapForSplit(int index) {
|
||||||
for (int i = 0; i < LM_PPTYPE_NUM; ++i) {
|
for (int i = 0; i < LM_PPTYPE_NUM; ++i) {
|
||||||
GenericVector<MatrixCoordPair>* heap = pain_points_heaps_[i].heap();
|
GenericVector<MatrixCoordPair>* heap = pain_points_heaps_[i].heap();
|
||||||
|
@ -59,7 +59,7 @@ void ViterbiStateEntry::Print(const char *msg) const {
|
|||||||
tprintf("\n");
|
tprintf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clears the viterbi search state back to its initial conditions.
|
/// Clears the viterbi search state back to its initial conditions.
|
||||||
void LanguageModelState::Clear() {
|
void LanguageModelState::Clear() {
|
||||||
viterbi_state_entries.clear();
|
viterbi_state_entries.clear();
|
||||||
viterbi_state_entries_prunable_length = 0;
|
viterbi_state_entries_prunable_length = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user