Error early in generate_package.py if no alphabet was specified and not using UTF-8 mode
X-DeepSpeech: NOBUILD
This commit is contained in:
parent
080dc7df3c
commit
09673581a4
@ -48,6 +48,9 @@ def create_bundle(
|
|||||||
if use_utf8:
|
if use_utf8:
|
||||||
serialized_alphabet = UTF8Alphabet().serialize()
|
serialized_alphabet = UTF8Alphabet().serialize()
|
||||||
else:
|
else:
|
||||||
|
if not alphabet_path:
|
||||||
|
print("No --alphabet path specified, can't continue.")
|
||||||
|
sys.exit(1)
|
||||||
serialized_alphabet = Alphabet(alphabet_path).serialize()
|
serialized_alphabet = Alphabet(alphabet_path).serialize()
|
||||||
|
|
||||||
alphabet = NativeAlphabet()
|
alphabet = NativeAlphabet()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user