Scripts for updating pymorphy2 dictionaries. License is MIT.
To compile a dictionary from a source XML file in OpenCorpora XML format
use build-dict.py
script.
./cookiecutter-pymorphy2-dicts
folder contains cookiecutter template
for creating language-specific pymorphy2-dicts-... packages.
update.py
is a script for building pymorphy2-dicts-ru and
pymorphy2-dicts-uk packages with Russian and Ukrainian dictionaries
for pymorphy2.
For Russian it downloads data from http://opencorpora.org,
compiles the dictionary using build-dict.py
script
and creates pymorphy2-dicts-ru package using cookiecutter.
For Ukrainian it downloads LanguageTool data from Google Drive, converts dictionary to OpenCorpora format using LT2OpenCorpora, then compiles it and creates pymorphy2-dicts-uk package.