Commit Graph

5 Commits

Author SHA1 Message Date
bentrevett
2b666b3cba update to torchtext 0.9 2021-03-12 13:25:47 +00:00
bentrevett
856d9e5598 updated appendix B - formatting and typos 2019-04-01 17:08:38 +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
97af01f11f added text for appendix b 2018-06-25 14:41:43 +01:00
bentrevett
f61390d331 + code complete for appendix B 2018-06-22 15:12:04 +01:00