Giter Site home page Giter Site logo

wordvec's Introduction

Word Vectors with Python

Setup

Download everything, or just the Python files (but use text/, list/, and model/ directories)

Install packages -- conda install gensim nltk scikit-learn matplotlib On Windows 10 I strongly recommend using an Anaconda environment and installing a C compiler like MinGW to speed up wvgen.py

The python files, look at the parameters at the top and customize based on your own filenames and desired outputs

wvgen.py generates the model, a prerequisite for all other steps. Input files go in text/ and the output is saved in model/

wvplot.py plots words from a file in list/

wvarith.py evaluates manual word vector comparisons, manual input

wvlinear.py finds approximate word vector equations from a file in list/

Useful input text sources

Database dumps from Fandom wikis (something.wikia.com/wiki/Special:Statistics)

Twitter API

Public domain books

Classic texts

Misc. Corpora

Included Examples:

model/ includes models for Super Mario, League of Legends, The Office (TV), Star Wars, Danganronpa, and Hollow Knight

list/ includes some names from these examples to be plotted

text/ includes xml dumps from the smaller wikis

wordvec's People

Contributors

logicalshark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.