schelotto / Neural_Speed_Reading_via_Skim-RNN_PyTorch

PyTorch implementation of "Neural Speed Reading via Skim-RNN"
MIT License
18 stars 9 forks source link

TypeError: splits() missing 1 required positional argument: 'label_field' #1

Closed Jasperty closed 6 years ago

Jasperty commented 6 years ago

when i run main.py, i got this error:

Traceback (most recent call last): File "main.py", line 62, in train_iter, test_iter = load_data(text_field, label_field, device=-1, repeat=False) File "main.py", line 47, in load_data train_data, test_data = dataset.splits(text_field, label_field) TypeError: splits() missing 1 required positional argument: 'label_field'

schelotto commented 6 years ago

It's a bug coming from my old code. It was cleaned up now. Thanks.