Closed yfqiu98 closed 3 years ago
Update:
solved by adding sys.path.append('/X/.sacrerouge')
I'm glad that you solved it, but I don't actually understand how adding that directory to your path fixed it because there is no Python code which is loaded from there.
If you don't add that to the path, but just try running import qaeval
, what happens? That import failed in SacreROUGE, which caused the error that you see. If import qaeval
fails, then it will show an exception for why it couldn't be imported.
Hello I just try to use the QAEval in sacrerouge, however I found the following issue. Seems the loading of QAEval() is broken and I did not see the output as in the demo colab https://colab.research.google.com/drive/1IZUZCUQAdCfXAMDDyeF67QFHB72y2svI?usp=sharing:
Version information: !pip install sacrerouge==0.2.2 !pip install qaeval==0.0.9
I follow the instruction in the colab demo to do
!sacrerouge setup-metric qa-eval
, but it did not work for downloading the answering model file (Although I got the same output as in the colab demo, there is no 'vocab.txt'). Thus I manually download it from:https://drive.google.com/file/d/1q2Z3FPP9AYNz0RJKHMlaweNhmLQoyPA8/view?usp=sharing.Other attempts:
Thanks in advance for any help.