Metadata-Version: 2.1
Name: zeyrek
Version: 0.1.2
Summary: Python morphological analyzer and lemmatizer for Turkish
Home-page: https://github.com/obulat/zeyrek
Author: Olga Bulat
Author-email: obulat@gmail.com
License: MIT license
Description: =============================================
        Zeyrek: Morphological Analyzer and Lemmatizer
        =============================================
        
        
        .. image:: https://img.shields.io/pypi/v/zeyrek.svg
                :target: https://pypi.python.org/pypi/zeyrek
        
        .. image:: https://readthedocs.org/projects/zeyrek/badge/?version=latest
                :target: https://zeyrek.readthedocs.io/en/latest/?badge=latest
                :alt: Documentation Status
                
        .. image:: https://github.com/obulat/zeyrek/workflows/build/badge.svg?branch=master
                :alt: build
        
        Zeyrek is a partial port of Zemberek library to Python for lemmatizing
        and analyzing Turkish language words. It is in alpha stage, and the API
        will probably change.
        
        
        * Free software: MIT license
        * Documentation: https://zeyrek.readthedocs.io.
        
        
        Basic Usage
        ~~~~~~~~~~~
        
        To use Zeyrek, first create an instance of MorphAnalyzer class::
        
            >>> import zeyrek
            >>> analyzer = zeyrek.MorphAnalyzer()
        
        Then, you can call its `analyze` method on words or texts to get all possible analyses::
        
            >>> print(analyzer.analyze('benim'))
            Parse(word='benim', lemma='ben', pos='Noun', morphemes=['Noun', 'A3sg', 'P1sg'], formatted='[ben:Noun] ben:Noun+A3sg+im:P1sg')
            Parse(word='benim', lemma='ben', pos='Pron', morphemes=['Pron', 'A1sg', 'Gen'], formatted='[ben:Pron,Pers] ben:Pron+A1sg+im:Gen')
            Parse(word='benim', lemma='ben', pos='Verb', morphemes=['Noun', 'A3sg', 'Zero', 'Verb', 'Pres', 'A1sg'], formatted='[ben:Noun] ben:Noun+A3sg|Zero→Verb+Pres+im:A1sg')
            Parse(word='benim', lemma='ben', pos='Verb', morphemes=['Pron', 'A1sg', 'Zero', 'Verb', 'Pres', 'A1sg'], formatted='[ben:Pron,Pers] ben:Pron+A1sg|Zero→Verb+Pres+im:A1sg')
        
        If you only need the base form of words, or lemmas, you can call `lemmatize`. It returns a list
        of tuples, with word itself and a list of possible lemmas::
        
            >>> print(analyzer.lemmatize('benim'))
            [('benim', ['ben'])]
        
        Credits
        -------
        
        This package is a Python port of part of the Zemberek_ package by `Ahmet A. Akın`_
        
        .. _Zemberek: https://github.com/ahmetaa/zemberek-nlp
        .. _Ahmet A. Akın: https://github.com/ahmetaa/
        
        This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
        
        .. _Cookiecutter: https://github.com/audreyr/cookiecutter
        .. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
        
        
Keywords: zeyrek
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/x-rst
