Skip to main content

Python wrapper for the Yandex MyStem 3

Project description

Build Status

Introduction

This module contains a wrapper for an excellent morphological analyzer for Russian language Yandex Mystem 3.0 released in June 2014. A morphological analyzer can perform lemmatization of text and derive a set of morphological attributes for each token. For more details about the algorithm see I. Segalovich «A fast morphological algorithm with unknown word guessing induced by a dictionary for a web search engine», MLMTA-2003, Las Vegas, Nevada, USA.

Python is the language of choice for many computational linguists, including those working with Russian language. The main motivation for this development was absence of any Python wrapper for the Mystem, a one of the most popular morphological analyzers for Russian language along with the PyMorphy2, the TreeTagger and AOT.

The third version of Mystem introduces several importaint improvements, most importaintly part-of-speech disambiguation. Our wrapper runs the Mystem in the mode which performs POS disambiguation.

This wrapper is open sources under MIT license. However, please consider that the Yandex Mystem is not open source and licensed under conditions of the Yandex License.

System Requrements

The wrapper works with CPython 2.6+/3.3+ and PyPy 1.9+.

The wrapper was tested on Ubuntu Linux 12.04+, Mac OSX 10.9+ and Windows 7+.

Installation

  1. Stable version: https://pypi.python.org/pypi/pymystem3. You can install it using pip:

    pip install pymystem3
  1. Latest version: https://github.com/Digsolab/pymystem3

A Quick Example

>>> from pymystem3 import Mystem
>>> text = "Красивая мама красиво мыла раму"
>>> m = Mystem()
>>> lemmas = m.lemmatize(text)
>>> print(''.join(lemmas))
красивый мама красиво мыть рама

Issues

The current version can be considered as an alpha version, so please let us know if something does not work as expected. Please report any bugs or requests that you have using the GitHub issue tracker (https://github.com/Digsolab/pymystem3/issues)!

Authors

Project details


Download files

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

Source Distribution

pymystem3-0.1.2.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

pymystem3-0.1.2-py2.7.egg (22.3 kB view details)

Uploaded Source

File details

Details for the file pymystem3-0.1.2.tar.gz.

File metadata

  • Download URL: pymystem3-0.1.2.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pymystem3-0.1.2.tar.gz
Algorithm Hash digest
SHA256 24456c2d6f45a79b7bfb1e3b799d14de0f721c103b5fdd31f7c0e8b815d0cb1a
MD5 83d9a1d1586cfc028fc412050156bed1
BLAKE2b-256 1960c8e433c3b71b7c83eba1c280afcc288fa05daf1495e1aeed0e521927d081

See more details on using hashes here.

File details

Details for the file pymystem3-0.1.2-py2.7.egg.

File metadata

File hashes

Hashes for pymystem3-0.1.2-py2.7.egg
Algorithm Hash digest
SHA256 64514da8b2169971de341fc3e246b8b05ddb2f70ad24e3bc56717a342d639c03
MD5 184d327c8963157b8a312e458b6022e6
BLAKE2b-256 ae2bea37868b204b3caf0f3b89485357a4ccefdfb6269bf41eac28b5573d57f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page