tunz / transformer-pytorch

Transformer implementation in PyTorch.
https://tunz.kr/post/4
MIT License
464 stars 102 forks source link

what is the version of the package torchtext? #1

Closed liudonglei closed 5 years ago

liudonglei commented 5 years ago

I use torchtext of version 0.2.3 and get this issue:

File "/home/dm/ldl/transformer-pytorch/dataset/translation.py", line 173, in prepare pad_token=pad, lower=True, eos_token='') TypeError: init() got an unexpected keyword argument 'is_target'

maybe the different version cause it.

tunz commented 5 years ago

Thanks for the report! I'm using torchtext 0.3.1. I updated the version in requirements.txt.

liudonglei commented 5 years ago

thanks for the information.