Replies: 3 comments
-
>>> kdavis |
Beta Was this translation helpful? Give feedback.
-
>>> erogol |
Beta Was this translation helpful? Give feedback.
-
>>> lissyx |
Beta Was this translation helpful? Give feedback.
-
>>> nobuf
[December 22, 2017, 6:33pm]
print()
in python2.7 has [some glitches with#frustration-3-inconsistent-treatment-of-output),
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 slash
...
> 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()
?[This is an archived TTS discussion thread from discourse.mozilla.org/t/alternative-to-print]
Beta Was this translation helpful? Give feedback.
All reactions