You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and refs are not equal which is not the case.
len references: 6724
len hypothesis: 6724
type references (should be list): <class 'list'>
type references[0] (should be list): <class 'list'>
type references[0][0] (should be string): <class 'str'>
type hypothesis (should be list): <class 'list'>
type hypothesis[0] (should be string): <class 'str'>
As you can see above, the lengths are the same and it should not be a problem
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.
The text was updated successfully, but these errors were encountered: