Skip to main content

YAWLib - Yet another WordNet library for Python

Project description

YAWlib - Yet Another WordNet library for Python

This library provides interfaces to all major WordNet releases (e.g. Gloss WordNet, Open Multilingual WordNet, WordNetSQL, etc.)

Data files:

WordNet 3.0 SQLite:

WordNet glosstag:

Google Drive links :

WordNet glosstag :


Yawlib is available on PyPI

pip install yawlib
# or
python3 -m pip install yawlib

# Download wordnet data and extract them to ~/wordnet

# Show yawlib information
python3 -m yawlib info

Search synsets by the lemma research, use python3 -m yawlib lemma research

wn lemma research
Looking for synsets by term (Provided: research | pos = None)

〔Synset〕00636921-n 〔Lemmas〕research 〔Keys〕research%1:04:00::
(def) “systematic investigation to establish facts;”

〔Synset〕05797597-n 〔Lemmas〕inquiry; enquiry; research 〔Keys〕inquiry%1:09:01:: enquiry%1:09:00:: research%1:09:00::
(def) “a search for knowledge;”
(ex) their pottery deserves more research than it has received;

〔Synset〕00648224-v 〔Lemmas〕research; search; explore 〔Keys〕research%2:31:00:: search%2:31:00:: explore%2:31:00::
(def) “inquire into;”
(ex) the students had to research the history of the Second World War for their history project;
(ex) He searched for information on his relatives on the web;
(ex) Scientists are exploring the nature of consciousness;

〔Synset〕00877327-v 〔Lemmas〕research 〔Keys〕research%2:32:00::
(def) “attempt to find out in a systematically and scientific manner;”
(ex) The student researched the history of that word;

Found 4 synset(s)

Note: Extract the glosstag folder and sqlite-30.db to ~/wordnet. The directory should look like this:

├── glosstag
│   ├── dtd
│   │   └── glosstag.dtd
│   ├── LICENSE.txt
│   ├── merged
│   │   ├── adj.xml
│   │   ├── adv.xml
│   │   ├── noun.xml
│   │   └── verb.xml
│   ├── README.txt
│   ├── standoff
│   │   ├── 00
│   │   ├── 01
│   │   ├── 02
│   │   ├── ....
│   │   ├──
│   │   ├──
│   │   ├──
│   │   ├──
│   │   ├──
│   │   ├──
│   │   └──
│   └──
├── glosstag.db
├── sqlite-30.db


Go to yawlib folder, execute the config script and then run to generate the glosstab DB file.

git clone
cd yawlib

# create virtual environment
python3 -m venv yawlib_py3
. yawlib_py3/bin/activate

# install required packages
pip install -r requirements.txt
pip install -r requirements-optional.txt

# to show information
python -m yawlib info

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for yawlib, version 0.1a2
Filename, size File type Python version Upload date Hashes
Filename, size yawlib-0.1a2.tar.gz (36.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page