HillZhang1999 / NaSGEC

Code & Data for our Paper "NaSGEC: Multi-Domain Chinese Grammatical Error Correction for Native Speaker Texts" (ACL 2023 Findings)
https://arxiv.org/abs/2305.16023
75 stars 6 forks source link

使用HuggingFace的 Hosted inference API时,报错,在本地用transformers加载报同样的错误 #3

Open jiweizhangxu opened 1 year ago

jiweizhangxu commented 1 year ago

1

HillZhang1999 commented 1 year ago

注意指定使用BertTokenizer

jiweizhangxu commented 1 year ago

注意指定使用BertTokenizer

请问具体怎么操作,API这无法调整Tokenizer,还是API就是不可用的状态

HillZhang1999 commented 1 year ago

你可以使用我的脚本尝试运行,在线API暂时不可用。 https://github.com/HillZhang1999/NaSGEC/blob/main/demo.py

jiweizhangxu commented 1 year ago

你可以使用我的脚本尝试运行,在线API暂时不可用。 https://github.com/HillZhang1999/NaSGEC/blob/main/demo.py 代码还是报相同错误,如下: 图片

HillZhang1999 commented 1 year ago

请尝试安装指定版本的依赖库: https://github.com/HillZhang1999/NaSGEC/blob/main/requirements.txt