mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-06 16:56:40 +08:00
BuildLangModel: the SequenceModel naming must include the language name.
This commit is contained in:
parent
c59465adfc
commit
dce79a6631
@ -382,7 +382,7 @@ c_code += LM_str
|
||||
|
||||
for charset in charsets:
|
||||
charset_c = charset.replace('-', '_').title()
|
||||
SM_str = '\n\nconst SequenceModel {}Model ='.format(charset_c)
|
||||
SM_str = '\n\nconst SequenceModel {}{}Model ='.format(charset_c, language_c)
|
||||
SM_str += '\n{\n '
|
||||
SM_str += '{}_CharToOrderMap,\n {}LangModel,'.format(charset_c, language_c)
|
||||
SM_str += '\n (float){},'.format(ratio_512)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user