script: update BuildLangModel.py to updated SequenceModel struct.

In particular, there is now a language code member.
This commit is contained in:
Jehan 2020-04-23 18:36:24 +02:00
parent 4e967c9e88
commit dde09c7d08

View File

@ -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