我正在嘗試使用它:https ://github.com/google-research/google-research/tree/master/rouge
我嘗試在 ubuntu for windows 終端中克隆 git 存盤庫,方法是
git clone https://github.com/google-research/google-research.git
克隆似乎很順利。
但是當我嘗試使用這個腳本時:
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
它說沒有名為 rouge.rouge 的模塊:
/usr/bin/python3:沒有名為 rouge.rouge 的模塊
我在這方面真的很新,我不知道為什么它不起作用。
uj5u.com熱心網友回復:
正如 Tim Roberts 建議的那樣,指定從rootREADME運行該命令。google-research此外,您應該安裝包的依賴項。
我已經設法通過以下步驟使其運行:
git clone https://github.com/google-research/google-research.git --depth=1cd google-researchpip install -r rouge/requirements.txtpython -m rouge.rouge --help
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/416865.html
標籤:
