Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 480 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 480 Bytes

wv

Some python code for computing word vectors from scratch on Gibbon's Decline and Fall.

model.py: defines the skip-gram model, the loss function and its gradients data.py: code for convering the HTML book into a token stream tokens.py: code for building training contexts from the tokens training.py: a simple SGD training routine

training.ipynb holds an example of training code

For further discussion, see here