EmotiVoice icon indicating copy to clipboard operation
EmotiVoice copied to clipboard

forntend_cn.py的split_py函数处理英文报错

Open abelzhao opened this issue 1 year ago • 4 comments

比如有这样一句中文:

你好,我是E小通,请问有什么我可以帮助你的?

中间夹杂了一个英文"E"

用forntend_cn.py来处理时:

def split_py(py):
    tone = py[-1]
    py = py[:-1]
    sm = ""
    ym = ""

传入单个字符‘E’, py越界,报错

abelzhao avatar Nov 29 '23 04:11 abelzhao

You can attempt again with the most recent code or explore the latest Docker image.

syq163 avatar Nov 29 '23 06:11 syq163

the latest docker image can't run, because the forntend_en.py can't load, as nltk_data not exists

abelzhao avatar Nov 29 '23 06:11 abelzhao

OK, which platform are you using?

syq163 avatar Nov 30 '23 03:11 syq163

I updated the Docker image 10 minutes ago. You can update it by running docker pull syq163/emoti-voice:latest , then rerun it using docker run -dp 127.0.0.1:8501:8501 syq163/emoti-voice:latest.

syq163 avatar Nov 30 '23 06:11 syq163