Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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 
git clone git@github.com:whosken/reversedict.git
cd reversedict
pip install -r requirements.txt
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

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.