Skip to content

d0ugal/reversedict

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reverse Dictionary

Ever had that problem when you know of the concept yet can't recall the word? Thesaurus are usually pretty poor at this task, because it's built to link individual words to each other, instead of definitions to a single word.

This solution is built from WordNet through NLTK and TextBlob. It utilizes tfidf implemented by Elasticsearch to index each word by their definitions.

Install

# install elasticsearch via https://www.elastic.co/downloads/elasticsearch 
pip install reversedict
service elasticsearch start
python cli.py --index

Usage

Basic look up

import reversedict
reversdict.lookup('run fast')

or

python cli.py 'run fast'

Synonym boosting

python cli.py 'run fast' --synonym sprint

About

Look up words by the definition, powered by WordNet and TextBlob

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 81.8%
  • HTML 9.3%
  • Python 7.5%
  • JavaScript 1.4%