Skip to content

Tutorial: implementing doc2vec (paragraph vectors) from scratch in PyTorch

License

Notifications You must be signed in to change notification settings

cbowdon/doc2vec-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doc2vec from scratch in PyTorch

This notebook explains how to implement doc2vec using PyTorch. It's aimed at relative beginners, but basic understanding of word embeddings (vectors) and PyTorch are assumed.

The implementation we end up with is hopefully correct but definitely not perfect. There's room for improvement in efficiency and features. Plus I have no intention of maintaining this, so please use a more established implementation for "serious" work. If you would like a PyTorch implementation, I recommend this one, from which this borrows extensively.

Visualization of the notebook model's results for the BBC dataset:

About

Tutorial: implementing doc2vec (paragraph vectors) from scratch in PyTorch

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published