Skip to content

whosken/reversedict

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages