Source

pymorphy2-dicts /

Filename Size Date modified Message
pymorphy2_dicts
205 B
207 B
1.2 KB
87 B
21 B
1.6 KB
422 B
82 B
3.2 KB

pymorphy2-dicts

This is a package with pre-compiled OpenCorpora.org dictionary data for pymorphy2.

Installation

Install:

$ pip install pymorphy2-dicts

Remove:

$ pip uninstall pymorphy2-dicts

Usage

You can get a path to the installed dataset using pymorphy2_dicts.get_path() method. Usually you don't have to do so, because if all of the following apply:

  1. this package is installed;
  2. dictionary path is not passed to pymorphy2.MorphAnalyzer constructor;
  3. PYMORPHY2_DICTIONARY_PATH environment variable is not set,

then pymorphy2.MorphAnalyzer() uses dictionaries from this package automatically.

Development

The main repo is https://github.com/kmike/pymorphy2-dicts/. The repository doesn't contain the data itself: only package template and update scripts are stored in VCS.

There is a hg/bitbucket mirror at https://bitbucket.org/kmike/pymorphy2-dicts/.

License for Python code in this package is MIT. The data is licensed under Creative Commons Attribution-Share Alike.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.