print()
in python2.7 has some glitches with unicode, and you might get UnicodeEncodeError when you have unicode characters in alphabet.txt and redirect the output from DeepSpeech.py to a file:
python -u DeepSpeech.py \
...
> log/somewhere
There are a couple of ways to avoid getting the exception, for instance having export PYTHONIOENCODING=utf-8
.
How about using built-in logging like tf_logging instead of the current prefix_print()
/print()
?