This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This repository contains scripts and expriments related to the Sense frequencies project, and an rlwsd python package for WSD (word sense disambiguation) for Russian language.

rlwsd package

This package can perform WSD for Russian nouns described in the of Active Dictionary of Russian (currently, only the first volume is published with letters “А” - “Г”).


The package currently works only on CPython 3.4+. Install with pip:

pip3 install rlwsd

The package requires models that are not hosted on PyPI and most be downloaded separately (about 2.3 Gb total):

python3 -m

Models are re-downloaded even if they are already present. In case of problems (download does not finish, etc.) you can download models manually from and extract them into the models folder inside rlwsd (package) folder.


Most functionality is provided by the model class. Model for each word must be loaded separately:

>>> import rlwsd
>>> model = rlwsd.SphericalModel.load('альбом')
>>> model.senses
{'1': {'meaning': 'Вещь в виде большой тетради ...',
       'name': 'альбом 1'},
 '2': {'meaning': 'Книга тематически связанных изобразительных материалов ...',
       'name': 'альбом 2.1'},
 '3': {'meaning': 'Собрание музыкальных произведений ...',
       'name': 'альбом 2.2'}}
>>> model.disambiguate('она задумчиво листала', 'альбом', 'с фотографиями')

You can also get a list of all words with models:

>>> import rlwsd
>>> rlwsd.list_words()

A large word2vec model is used internally. By default it is loaded once, one the first call to .disambiguate method, which takes noticeable time. There is an option to load word2vec model in a separate process by running w2v-server command, which starts a server, and exporting W2VSRV environment variable with any non-empty value:

# in the first terminal window
$ w2v-server
# in the second terminal window
$ export W2VSRV=yes
$ python

In this way you can leave the w2v-server running and save time on word2vec model reloads.


License is MIT

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
rlwsd-0.1.2-py2.py3-none-any.whl (13.1 kB) Copy SHA256 Checksum SHA256 3.4 Wheel May 22, 2016
rlwsd-0.1.2.tar.gz (11.0 kB) Copy SHA256 Checksum SHA256 Source May 22, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting