Skip to content

This is the example of analysing corpus of texts using Word2Vec

License

Notifications You must be signed in to change notification settings

DanilBaibak/Harry_Potter_vs_Word2Vec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Word vectors of Harry Potter

Overview

The idea is use Word2Vec for find relations between words, map words into 2D dimensionality, analyze them for the collection of books about Harry Potter.

Installation

For installation please use conda. Just run:

make init

After the installation was done successfully, activate your enviroment:

source activate hp2vec

For using conda and environments, please read full documentation of conda.

Usage

After activate source, run jupyter notebook hp2vec.ipynb. I saved pre-train model, so load it w2v.Word2Vec.load('models/500features_35minwords_10context') and have fun.

The hp2vec.ipynb has the precompiled code, so you can see some interesting relations and how the plots look like.

About

This is the example of analysing corpus of texts using Word2Vec

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published