mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
Improved script consistency in numbers
This commit is contained in:
parent
648e7ca311
commit
e46b605469
@ -129,7 +129,9 @@ class LanguageModel {
|
||||
const LMConsistencyInfo &consistency_info) {
|
||||
if (dawg_info != NULL) {
|
||||
return ComputeAdjustment(consistency_info.NumInconsistentCase(),
|
||||
language_model_penalty_case);
|
||||
language_model_penalty_case) +
|
||||
(consistency_info.inconsistent_script ?
|
||||
language_model_penalty_script : 0.0f);
|
||||
}
|
||||
return (ComputeAdjustment(consistency_info.NumInconsistentPunc(),
|
||||
language_model_penalty_punc) +
|
||||
|
Loading…
Reference in New Issue
Block a user