DanilBaibak / Harry_Potter_vs_Word2Vec

This is the example of analysing corpus of texts using Word2Vec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Jupyter Notebook 100.0%Language:Makefile 0.0%