报错内容:
modelscope\pipelines\nlp\translation_pipeline.py
self._src_vocab = dict([
(w.strip(), i) for i, w in enumerate(open(self._src_vocab_path))
])
UnicodeDecodeError: 'gbk' codec can't decode byte 0x9a in position 1742: illegal multibyte sequence
modelscope\utils\registry.py
TypeError: function takes exactly 5 arguments (1 given)
*我确定不是UTF-8 编码格式的问题,并且modelscope的安装经过中文分词验证也可以正常使用python -c "from modelscope.pipelines import pipeline;print(pipeline('word-segmentation')('今天天气不错,适合 出去游玩'))"