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

IndexError: list index out of range #14

Open
r-mohammadi opened this issue Dec 24, 2021 · 0 comments
Open

IndexError: list index out of range #14

r-mohammadi opened this issue Dec 24, 2021 · 0 comments

Comments

@r-mohammadi
Copy link

hi. I used your codes using hotpot_dev_fullwiki_v1.json as dev file. In dump_features phase I get this error:

/scripts/5_dump_features.py", line 225, in read_hotpot_examples
for _l in sel_paras[0]:
IndexError: list index out of range

I debugged code and I found that in multihop phase for some questions, no paragraph is selected.
a part of multihop file that is created is:

"5ae60426554299546bf83019": [
["Celebrity Home Entertainment"],
["BraveStarr"],
["Tottoi", "COPS (animated TV series)"]
],
"5a8cfee555429941ae14df5c": [],
"5a71166d5542994082a3e576": [
["Battle of Manila (1574)"],
["Battle of Klushino"],
["Battle of Yao (Japan)", "Battle of Alhandic"]
],

for "5a8cfee555429941ae14df5c" no paragraph is selected. so we get this exception.

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

1 participant