Closed is closed 1 month ago
Notice: In order to resolve issues more efficiently, please raise issue following the template. (注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)
Steps to reproduce the behavior (always include the command you ran):
import funasr
python -m m0
/data/c/envs/sensevoice/lib/python3.12/site-packages/funasr/models/fsmn_kws/encoder.py:65: SyntaxWarning: invalid escape sequence '\[' /data/c/envs/sensevoice/lib/python3.12/site-packages/funasr/models/fsmn_kws/encoder.py:124: SyntaxWarning: invalid escape sequence '\[' /data/c/envs/sensevoice/lib/python3.12/site-packages/funasr/models/fsmn_kws/encoder.py:135: SyntaxWarning: invalid escape sequence '\[' /data/c/envs/sensevoice/lib/python3.12/site-packages/funasr/models/fsmn_kws/encoder.py:256: SyntaxWarning: invalid escape sequence '\[' /data/c/envs/sensevoice/lib/python3.12/site-packages/funasr/models/fsmn_kws/encoder.py:277: SyntaxWarning: invalid escape sequence '\[' /data/c/envs/sensevoice/lib/python3.12/site-packages/funasr/models/fsmn_kws/encoder.py:300: SyntaxWarning: invalid escape sequence '\['
FunASR/funasr/models/fsmn_kw/encoder.py中的代码
FunASR/funasr/models/fsmn_kw/encoder.py
splits = line.strip().strip('\[\]').strip().split()
应该
splits = line.strip().strip('[]').strip().split()
就可以了.
python 3.12.7 funasr 1.1.11 modelscope 1.18.1
这个问题是还没解决吗
Notice: In order to resolve issues more efficiently, please raise issue following the template. (注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)
🐛 Bug
To Reproduce
Steps to reproduce the behavior (always include the command you ran):
python -m m0
Code sample
Expected behavior
FunASR/funasr/models/fsmn_kw/encoder.py
中的代码应该
就可以了.
Environment
Additional context