Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 962 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 962 Bytes

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.