galsang / BiDAF-pytorch

Re-implementation of BiDAF(Bidirectional Attention Flow for Machine Comprehension, Minjoon Seo et al., ICLR 2017) on PyTorch.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error:RawField object has no attribute 'is_target'

RAddRiceee opened this issue · comments

Thanks for your sharing, your code is readable! when i cloned the project to run ,i got this problem" the
RawField object has no attribute 'is_target" .But I m a noob ,can you tell me what may be the problem?
Thank you!

It looks like the problem is related to the version compatibility of the Torchtext library utilized in our code. You can try using the lastest version of the library or the version specified in the README.md. I expect one of the two will work fine.

It looks like the problem is related to the version compatibility of the Torchtext library utilized in our code. You can try using the lastest version of the library or the version specified in the README.md. I expect one of the two will work fine.
thank you for your reply.I will have a try right now

I added self.RAW.is_target = False to solve this problem.

I added self.RAW.is_target = False to solve this problem.

Where do you add this line of code?