diff options
author | Jehan <jehan@girinstud.io> | 2020-04-23 18:36:24 +0200 |
---|---|---|
committer | Jehan <jehan@girinstud.io> | 2020-04-23 18:39:49 +0200 |
commit | dde09c7d08949a2aca0306ea2cf972cdee011b3a (patch) | |
tree | 434d48b5030430b6193d04b03795de9bf053be99 | |
parent | 4e967c9e882b8857e3a059698768cb0b2bff14a6 (diff) |
script: update BuildLangModel.py to updated SequenceModel struct.
In particular, there is now a language code member.
-rwxr-xr-x | script/BuildLangModel.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/BuildLangModel.py b/script/BuildLangModel.py index 38ac793..d24e760 100755 --- a/script/BuildLangModel.py +++ b/script/BuildLangModel.py @@ -514,7 +514,8 @@ for charset in charsets: SM_str += '\n {},'.format(freq_count) SM_str += '\n (float){},'.format(ratio_512) SM_str += '\n {},'.format('PR_TRUE' if lang.use_ascii else 'PR_FALSE') - SM_str += '\n "{}"'.format(charset) + SM_str += '\n "{},"'.format(charset) + SM_str += '\n "{}"'.format(lang.code) SM_str += '\n};' c_code += SM_str |