Skip to content

clijo/skipgram-negative-sampling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skip-gram with Negative Sampling

This notebook explores an implementation of the Skip-gram with Negative Sampling (SGNS) model using PyTorch, applied to the text8 corpus. It presents both the theoretical formulation of the model as well as details of Negative Sampling for approximate training. The embeddings are trained with early stopping rule based on the extrinsic scores from evaluation on WordSim353 and Google analogy test set.

Visualizing word analogies in the embedding space using PCA

Visualizing word similarities in the embedding space using t-SNE

About

Skipgram word2vec using negative sampling, with PyTorch.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published