Open razaviah opened 2 years ago
Maybe one of the inner lists in refs doesn't have enough items? It's best if each inner list is the same length.
I have even tried with 1 item in each inner list and it still gives the same error. Can you try it yourself and tell me if it works or not for you?
@juharris Did you have the time to test it? I still cannot have it working properly
Can you run this with pdb and print the two lists causing the discrepancy?
Hello,
I have a problem with the way that "object oriented API for repeated calls in a script - multiple examples" works. To my understandings, I have to have a list of hypotheses and a list of list of references. like hyps=['aaa', 'bbb'] and refs=[['aa', 'aaa', 'aaaa'], ['bb', 'bbb']], correct?
Well if that is the case I am getting an error indicating that the length of my
hyp
andrefs
are not equal which is not the case.As you can see above, the lengths are the same and it should not be a problem
Here is my code which gets the error:
And here is the error itself:
If you need more information, please let me know.