Skip to content

airshipcloud/dictionary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordNet Dictionary

The dictionary service provides a JSON API for expanding a tag into set of synonym tag, more general tag and related tags by using English stemming and WordNet. The service can be used in tagging systems to further expand and/or rank search results.

Requirements

PostgreSQL 9.1+ Erlang R15B03

See Zephyr Install Guide

Setup

# initialize the database
make setup
# start the service
script/dictionary console

Seed Wordnet

WordNet data is stored in a separate dictionary-seed repo.

git clone https://github.com/airships/dictionary-seed.git

# In dictionary Erlang console
(tag_analysis@127.0.0.1)1> tag_analysis_import_wordnet:do("../../../../dictionary-seed/wordnet/Thesaurus/Thesaurus_a-z.csv").

Seed Tags

(echo 'copy tags from stdin;' ; cat ../dictionary-seed/db/tags.tsv) | psql -U airship_dict 
(echo 'copy synonyms from stdin;' ; cat ../dictionary-seed/db/synonyms.tsv) | psql -U airship_dict 

Querying

curl -v http://localhost:10001/tags/software%20development

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published