error: 'utf-8' codec cannot decode byte 0x9c in position 0 : invalid continuation byte 问题

在mozilla-DeepSpeech模型test中遇到此问题,在ds_ctcdecoder/__init__.py中第138行添加‘ignore’解决此问题

 

The problem is that it have invalid UTF-8 bytes in the text . Adding 'ignore' or 'replace' to the decode call will patch the problem.

from site: github.com/mozilla/DeepSpeech/issues/3477

 

another possive solve method is adding (encoding = 'unicode_escape')

from site: cnblogs.com/xiaolan-Lin/p/11653432.html

posted @ 2021-09-16 10:20  wieneralan  阅读(9)  评论(0编辑  收藏  举报