-
Notifications
You must be signed in to change notification settings - Fork 46
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
data_utils.py List index out of range #8
Comments
The error will occur if the sizes of the content plan and training data do not match. |
I use provided train.json and inter/train_content_plan.txt(I do not generate them by myself), it shows error: |
Hi @ratishsp , Thank you very much for sharing the code and for answering many questions for people trying to replicate your result which is very helpful to me as well. I am sorry but I want to reopen this issue because I had the same error above and could not resolve it. I run the following command: with:
The error occurred in the same place:
Following your comment:
I checked the data size and found the mismatch between train.json (3398 as in https://github.com/harvardnlp/boxscore-data) and train_content_plan.txt (3371 line). To be honest, I am not very familiar with OpenNMT etc., so if it is too obvious I am sorry. My environment is below (I could not follow the env specified in requirement.txt, but I do not think it matters to the error...):
Thank you very much for your help. |
Hi @ghtaro, |
Hi @ratishsp , Thank you very much for your prompt reply.
I was able to setup the very similar computational environment now, but still got the same error messages... Anyway, understood, I will follow the instruction (in #26). |
I have the same problem. Do you solve it? |
HI, @ghtaro, I have the same problem and I've stuck in it for many days. Could you tell me how to solve it? |
Hi @happycjksh, |
Thanks for your answer. I'll load the new train.json immediately and give you a reply about the result as soon as possible. |
Hi @ratishsp, I'm so sorry. Although the data_utils.py can drive, the train-roto-ptrs.txt is an empty file. I try to solve the problem, but useless. I hope you can help me solve the problem. Thank you |
Oh. I am not sure why the file is empty. |
I'll try to solve it. If I solve the problem, I can tell you the reason. |
While creating train-roto-ptrs.txt using ptrs mode, I am getting this index error:
Any quick suggestion?
The text was updated successfully, but these errors were encountered: