diff options
author | Jehan <jehan@girinstud.io> | 2021-03-21 12:30:29 +0100 |
---|---|---|
committer | Jehan <jehan@girinstud.io> | 2022-12-14 00:24:53 +0100 |
commit | adb158b05853ab9a02e818b7ce84eb9794a19f91 (patch) | |
tree | f116d916530d3516767e7ba8c6555f943330aaaf | |
parent | 19737886fe7b2d78a9666a22c42e804790882505 (diff) |
script: fix a stupid bug making same ratio for all frequent characters.
Argh! How did I miss this!
-rwxr-xr-x | script/BuildLangModel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/BuildLangModel.py b/script/BuildLangModel.py index d0d52dc..dea63c7 100755 --- a/script/BuildLangModel.py +++ b/script/BuildLangModel.py @@ -218,7 +218,7 @@ def process_text(content, lang): if unicode_value in characters: characters[unicode_value] += 1 is_letter = True - if lang.use_ascii and \ + elif lang.use_ascii and \ ((unicode_value >= 65 and unicode_value <= 90) or \ (unicode_value >= 97 and unicode_value <= 122)): characters[unicode_value] = 1 |