Skip to content

fcbond/OMW

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OMW

Code for the Open Multilingual Wordnet --- read in wordnets, validate them, and search them

Currently running here: http://compling.hss.ntu.edu.sg/iliomw

DB Schema: https://docs.google.com/spreadsheets/d/1-FFnIaw0_6aJ6a--wfooNnGQlVpfl-hTxof8mWmX0P8/edit?usp=sharing (may be out of date)

Setup

To setup OMW, start by cloning the repository and changing to its directory:

~$ git clone https://github.com/globalwordnet/OMW.git
~$ cd OMW/
~/OMW$

This application utilizes older versions of some packages, as specified in requirements.txt. For that reason, we suggest the creation of isolated Python environments using virtualenv to install such versions. See here for instructions on installing virtualenv itself if you don't already have it. Now create and activate new virtual environment:

~/OMW$ virtualenv -p python3 env
~/OMW$ source env/bin/activate
(env) ~/OMW$

Now install the dependencies and download WordNet for NLTK:

(env) ~/OMW$ pip install -r requirements.txt
(env) ~/OMW$ python -c 'import nltk; nltk.download("wordnet")'

With the dependencies satisfied, you are ready to create the databases for running the OMW interface:

(env) ~/OMW$ bash create-db.sh

The above command will prompt for a password for the admin database. When the command has completed, you are ready to run the web app.

Running in Debug Mode

You can run the OMW web app on your local machine in debug mode by running omw/__init__.py:

(env) ~/OMW/omw$ python __init__.py

Note: Currently you must run the above command from the omw/ subdirectory.

If successful, you should be able to view the OMW by visiting http://0.0.0.0:5000/

Releases

No releases published

Packages

No packages published

Languages

  • Python 26.8%
  • CSS 25.3%
  • HTML 23.5%
  • PLpgSQL 14.4%
  • JavaScript 9.4%
  • Shell 0.6%