Code for the Open Multilingual Wordnet --- read in wordnets, validate them, and search them.
Currently running here: https://compling.upol.cz/omw/omw
DB Schema: https://docs.google.com/spreadsheets/d/1-FFnIaw0_6aJ6a--wfooNnGQlVpfl-hTxof8mWmX0P8/edit?usp=sharing (may be out of date) or on github: https://github.com/globalwordnet/schemas with docs: https://globalwordnet.github.io/schemas/
To setup OMW, follow these instructions.
The included omw.wsgi
file can help you get started with deploying to an Apache2 server with mod_wsgi
.
See the Flask documentation for more information.
If you are running a virtual environment (which is recommended) for a deployment with Apache2 and mod_wsgi
, note the following:
- You must use the same version of Python that
mod_wsgi
is compiled against (see here). - If your need to use
sudo
to create and install packages to the virtual environment, runningsudo pip install -r omw/requirements.txt
with the environment active will not work; instead, usesudo py3env/bin/pip install -r omw/requirements.txt
(adjusting paths as needed for your setup). - As described here, you may need to activate the virtual environment from the WSGI script. See
omw.wsgi
for an example.
You can load a wordnet from the command line:
(py3env) ~/OMW$ PYTHONPATH=. python scripts/validate-wn.py /home/bond/work/omw/jpn/jpn.xml
Note that you may still have to add the project, and possibly the language, from the web interface (under CILI: Project and Source Administration or Language Administration).
Join our mission, contribute to the Open Multilingual Wordnet.