script: further fixing BuildLangModel.py.

This commit is contained in:
Jehan 2022-11-30 20:17:25 +01:00
parent 6365cad4fd
commit 784f614c84

View File

@ -143,6 +143,8 @@ if lang.use_ascii:
if lang.alphabet is None:
lang.alphabet = [chr(l) for l in range(65, 91)] + [chr(l) for l in range(97, 123)]
else:
# Allowing to provide an alphabet in string format rather than list.
lang.alphabet = list(lang.alphabet)
lang.alphabet += [chr(l) for l in range(65, 91)] + [chr(l) for l in range(97, 123)]
if lang.alphabet is not None:
# Allowing to provide an alphabet in string format rather than list.