bloomsburyai / question-generation

Neural text-to-text question generation
MIT License
217 stars 52 forks source link

run problem #2

Closed KJ-Lin closed 6 years ago

KJ-Lin commented 6 years ago

hello, The code has problem when it run,the issue is “tensorflow.python.framework.errors_impl.InvalidArgumentError: Paddings must be non-negative: 0 -22” which at the code “ alignments_padded = tf.pad(alignments, [[0, 0], [0, self.units-tf.shape(alignments)[-1]]], 'CONSTANT')”

cloud you help to solve it thanks!

tomhosking commented 6 years ago

This should have been fixed in https://github.com/bloogram/question-generation/commit/7e52187ea9a4b0f23d11c9f8d4641d6914008b09