Open varisd opened 6 years ago
If Vocabulary returns a batch of empty sentences ('[[]]', '[[], []]', etc.), the list(zip(*vectors)) at https://github.com/ufal/neuralmonkey/blob/master/neuralmonkey/model/sequence.py#L213 reduces the dimension of the list which causes a ValueError (feeding a list of rank 1 to a rank 2 placeholder).
This bug is possibly relevant to other modules, where the list-zip idiom is used.
I think we came across this issue yesterday on another place as well..
If Vocabulary returns a batch of empty sentences ('[[]]', '[[], []]', etc.), the list(zip(*vectors)) at https://github.com/ufal/neuralmonkey/blob/master/neuralmonkey/model/sequence.py#L213 reduces the dimension of the list which causes a ValueError (feeding a list of rank 1 to a rank 2 placeholder).
This bug is possibly relevant to other modules, where the list-zip idiom is used.