Open LGDEMO opened 3 years ago
Hi, Thank you for your interest in our paper. From the error message. It seems you didn't install the rouge metric correctly. The rouge we use here is based on this tool: huggingface nlp. You can check this issue How to get ROUGE-2 with the ROUGE metric ? to learn how to use the metric.
Traceback (most recent call last): File "D:/Python_WorkSpace/Laysumm/BART/preprocess_sent_label.py", line 258, in
rouge = nlp.load_metric('rouge')
File "D:\Anaconda3\envs\myenv\lib\site-packages\nlp\load.py", line 442, in load_metric
module_path, hash = prepare_module(path, download_config=download_config, dataset=False)
File "D:\Anaconda3\envs\myenv\lib\site-packages\nlp\load.py", line 303, in prepare_module
f"To be able to use this {module_type}, you need to install the following dependencies"
ImportError: To be able to use this metric, you need to install the following dependencies['absl', 'rouge_score', 'rouge_score'] using 'pip install # Here to have a nice missing dependency error message early on rouge_score rouge_score' for instance'