Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.15 KB

README.md

File metadata and controls

45 lines (30 loc) · 1.15 KB

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