Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specified model filename pattern was: #ID#.ref #14

Open
caicai83121 opened this issue Aug 11, 2022 · 1 comment
Open

Specified model filename pattern was: #ID#.ref #14

caicai83121 opened this issue Aug 11, 2022 · 1 comment

Comments

@caicai83121
Copy link

Hi, thanks for this fantastic work.
Here is my question:
when I do "Example: evaluating the model as a generator on CNNDM"

calculate the ROUGE scores using ROUGE Perl Package

python cal_rouge.py --ref ./cnndm/test.target.tokenized --hyp ./result/cnndm/test.out.tokenized -l

it tell me :
Rouge155.py line 497, in __get_model_filenames_for_id
raise Exception(
Exception: Could not find any model summaries for the system summary with ID 10. Specified model filename pattern was: #ID#.ref

How to solve this problem?Thank you!

@yixinL7
Copy link
Owner

yixinL7 commented Sep 6, 2022

Hi, were you able to solve this problem?

One thing you could check is if the two files you provided (--ref and --hyp) contain the same number of lines. In your case I'm guessing the file you gave through --hyp is missing some lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants