I am trying to use this: https://github.com/google-research/google-research/tree/master/rouge
I've tried cloning the git repository in the ubuntu for windows terminal, by doing
git clone https://github.com/google-research/google-research.git
And the cloning seems to go fine.
But when I try to use this script:
python3 -m rouge.rouge \
--target_filepattern="./en_test_CN.txt" \
--prediction_filepattern="./en_pred_CN.txt" \
--output_filename="./en_scores.csv" \
--use_stemmer=true \
--split_summaries=true
It says that there is no module named rouge.rouge:
/usr/bin/python3: No module named rouge.rouge
I'm really new in this and I don't know why it's not working.
As Tim Roberts suggested, the README
specifies running that command from google-research
root. Additionally, you should install the package's dependencies.
I've managed to get it running with the following steps:
git clone https://github.com/google-research/google-research.git --depth=1
cd google-research
pip install -r rouge/requirements.txt
python -m rouge.rouge --help
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.