Skip to content

Enhances the vocabulary of a text to a more advanced one through Word2Vec and Machine Learning.

Notifications You must be signed in to change notification settings

OliverEdholm/Text-vocabulary-enhancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text vocabulary enhancer

Enhances an english textsvocabulary using Word2Vec and other NLP tools. This isn't derived from a paper or something like that and I've personally not seen anything similar.

An example

If I input this.

In my freetime I look at some great movie and play lots of piano.

It turns into to this!

In my freetime I look at some outstanding flick and run heaps of pianoforte.

Your teacher will love your use of unecessary words like "pianoforte". :)

Requirements

  • Python 3.*
  • Gensim
  • NLTK, full installation

Setup

  1. Download GoogleNews or other compatible Word2Vec model. Can be downloaded from here: https://code.google.com/archive/p/word2vec/
  2. Run
python3 create_sims_file.py
  1. Run
python3 freq.py
  1. Done

Running

To test it, run.

python3 main.py "TEXT HERE"

Other

Made by Oliver Edholm, 15 years old.

About

Enhances the vocabulary of a text to a more advanced one through Word2Vec and Machine Learning.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages