Commit Graph

8 Commits

Author SHA1 Message Date
bentrevett
2b666b3cba update to torchtext 0.9 2021-03-12 13:25:47 +00:00
bentrevett
79bb86abc9 clarified loading own datasets 2020-01-28 09:53:16 +00:00
bentrevett
2753e93ca4 reran all notebooks with latest pytorch and torchtext to ensure still working 2019-09-16 11:32:18 +01:00
bentrevett
b21f42f764 mention how using sort key is preferred over sort = False 2019-03-23 14:48:52 +00:00
bentrevett
b9d46f0ce0 added need for sort/sort_key in iterators when using own dataset (#27) 2019-03-23 10:06:34 +00:00
bentrevett
ecbfa2e469 Appendix A typos
- forgot to change train, valid and test to train_data, valid_data and test_data
2018-10-17 18:02:22 +01:00
bentrevett
61bf7da1d0 Update for TorchText 0.3
- reworded a lot of the explanations
- fixed a lot of typos
- updated some images and moved new ones to assets folder

- fixed deterministic evaluation with `torch.backends.cudnn.deterministic = True`

- tensor_type in Fields becomes dtype
- changed train, valid, test TorchText dataset objects to be named train_data, valid_data and test_data

- TorchText iterators now have `repeat = False` by default, so removed
- TorchText iterators now take a `torch.device` instead of an int representing the GPU number (and -1 for CPU)

- `F.sigmoid` is now `torch.sigmoid`

- padding sentences in the CNN model is now fixed (before spaCy would tokenize the <pad> token into three separate tokens)
2018-10-17 17:54:31 +01:00
bentrevett
f297a84cab added optional appendix for how to use your own dataset with torchtext 2018-06-06 16:06:25 +01:00