Closed hyunjik11 closed 4 years ago
This is a torchtext version issue. Please use the versions listed in the README if you want everything to run!
I see, I was indeed using the latest torchtext v0.4.0 as opposed to v0.2.3 used for this repository. If people want to use v0.4.0, I think the above is the only change that needs to be made.
Here https://github.com/harvardnlp/TextFlow/blob/0eb8552ae5b370f69e440bca6c6c226b1734c1ba/utils.py#L43 there is a
train
argument that is unused. So when running on the polyphonic music data, this causes an error:because the
process
method of theField
class in torchtext only has argumentsbatch
anddevice
- c.f. https://github.com/pytorch/text/blob/f765e517d6cc456b876715f1cb9c843bec8b14ed/torchtext/data/field.py#L225It runs without error when the
train
argument is removed.