introduction-to-bert.ipynb
Gives an introduction on how to use BERT for inference. Ideal if you want to use BERT for feature extraction.
mask-probability.ipynb
Under construction. Code works but needs comments and more explanation.
- Clone from GitHub
pipenv install
inside the cloned directory (where the Pipfile is)- Install the correct torch version for your system. You don't need torchvision. When using pipenv, you'll first have to activate shell and then install torch.
pipenv shell
python -m pip install torch===1.3.1 -f https://download.pytorch.org/whl/torch_stable.html
To run the notebook, simply launch your jupyter notebook, e.g.
pipenv run jupyter notebook