zjunlp / DocuNet

[IJCAI 2021] Document-level Relation Extraction as Semantic Segmentation
MIT License
132 stars 20 forks source link

给的shell脚本用windows改过吗?(Resolved) #15

Closed LawsonAbs closed 2 years ago

LawsonAbs commented 2 years ago

报错:

scripts/run_docred.sh: line 3: $'\r': command not found
scripts/run_docred.sh: line 14: syntax error near unexpected token `$'do\r''
'cripts/run_docred.sh: line 14: `    do

这个run_docred.sh 脚本是不是用windows改过导致 linux 下跑不通啊

zxlzr commented 2 years ago

您好,建议您换个linux的shell环境再尝试一下,我刚才试了没遇到类似的问题。

Wangderfulth commented 2 years ago

I have the same problem on linux...

And I use dos2unix to convert .sh files to a format that supported by Linux, use 'sudo apt-get install dos2unix' if you didn't install it.

njcx-ai commented 2 years ago

感谢您们的提醒,经过排查我们已经修复shell脚本中的这一问题,您可以重新下载运行。

LawsonAbs commented 2 years ago

这效率 很赞哇!哈哈哈