Skip to content

Django API to access the vectors on openmeaning.org.

Notifications You must be signed in to change notification settings

PeARSearch/openmeaning-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openmeaning-api

The openmeaning api lets users access vectors in json format from openmeaning.org, using the word that the vector represents. The code in this repo lets PeARS team setup the server with a database of vectors, taken from a .dm file.

Install

  • Open virtualenv and install requirements:

source env/bin/activate

pip install -r requirements.txt

python manage.py migrate

python manage.py createsuperuser

  • Populate the database with vectors

python populate_db.py

##Try it out

  • Run the server:

python manage.py runserver

curl -u admin:password123 http://127.0.0.1:8000/vectors/the/

About

Django API to access the vectors on openmeaning.org.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published