Commit Graph

17 Commits

Author SHA1 Message Date
bentrevett
2b666b3cba update to torchtext 0.9 2021-03-12 13:25:47 +00:00
bentrevett
ba82b9231e updated tutorials + readme with latest versions of libs. 2021-02-17 12:52:57 +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
be122f3a6f added model.eval() in predict sentiment functions (#31) 2019-04-10 10:27:20 +01:00
bentrevett
63c08ef0bc mentioned how notebook 2 will introduce packed padded sequences 2019-04-01 16:08:30 +01:00
bentrevett
525ae0b416 lots of formatting changes 2019-03-29 16:57:00 +00:00
bentrevett
bf8cc46e48 added parameter count and epoch timer functions to all notebooks. also added cnn1d imlementation to notebook 4 2019-03-21 22:48:21 +00:00
bentrevett
cd09d20b65 fixed out of glove vector initialization and missing generate bigrams functions in fasttext implementation 2019-03-21 17:22:25 +00:00
bentrevett
25efef84d4 changed imgur urls to own assets 2019-03-10 14:45:44 +00:00
bentrevett
0327a54c63 fixed some wording 2019-03-10 14:16:18 +00:00
bentrevett
7dd3c19876 fixed typo 2018-11-22 21:15:45 +00: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
01c6f59c69 fixed train/valid splits not being deterministic 2018-07-05 12:47:04 +01:00
bentrevett
1b8a778297 removed unnecessary passing of optimizer to evaluate function 2018-07-05 11:40:41 +01:00
bentrevett
f297a84cab added optional appendix for how to use your own dataset with torchtext 2018-06-06 16:06:25 +01:00
bentrevett
73bc184c46 added simple, upgraded and faster sentiment analysis 2018-06-05 22:16:05 +01:00
bentrevett
4010422b7a added tutorial notebook 2018-05-31 23:55:32 +01:00