RepositoryPythonTRTürkiye
obulat

obulat/zeyrek

Python morphological analyzer for Turkish language. Partial port of ZemberekNLP.

68stars
10forks
0issues
0views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: lemmatization

#1 Repository of the month

1
TINIX TRENDING·Topic: morphological-analysis

#1 Repository of the month

1
TINIX TRENDING·Topic: morphology

#1 Repository of the month

Zeyrek: Morphological Analyzer and Lemmatizer

PyPI - Version

Zeyrek is a partial port of the Zemberek library to Python for lemmatizing and analyzing Turkish language words. It is in alpha stage, and the API will probably change.

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

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
pysal/momepy

Urban Morphology Measuring Toolkit

643
Nov 27, 2026
RepositoryPython
adbar/simplemma

Simple multilingual lemmatizer for Python, especially useful for speed and efficiency

219
Nov 19, 2026
RepositoryPython
google-research/turkish-morphology

A two-level morphological analyzer for Turkish.

186
Mar 15, 2022
RepositoryJava
ahmetaa/zemberek-nlp

NLP tools for Turkish.

1.4k
Nov 29, 2026
RepositoryHaskell
kip-dili/kip

A programming language in Turkish where grammatical case and mood are part of the type system.

883
Sep 26, 2026
RepositoryC++
bab2min/Kiwi

Kiwi(지능형 한국어 형태소 분석기)

815
Nov 23, 2026
Modeltext-generation
ytu-ce-cosmos/Turkish-Llama-8b-v0.1

Cosmos LLaMa This model is a fully fine-tuned version of the LLaMA-3 8B model with a 30GB Turkish dataset. The Cosmos LLaMa is designed for text generation tasks, providing the ability to continue a given text snippet in a coherent and contextually...

♥0
108
Dec 3, 2024
Modelsentence-similarity
ytu-ce-cosmos/turkish-colbert

Turkish-ColBERT This is a Turkish passage retrieval model based on the ColBERT(https://doi.org/10.48550/arXiv.2112.01488) architecture. The Cosmos Turkish Base BERT(https://huggingface.co/ytu-ce-cosmos/turkish-base-bert-uncased) model was fine-tuned...

♥0
129
Aug 18, 2026
Modelfeature-extraction
ytu-ce-cosmos/turkish-e5-large

Turkish-e5-Large This is a finetune version of model intfloat/multilingual-e5-large-instruct with various Turkish datasets. Recommended Instruct: "Given a Turkish search query, retrieve relevant passages written in Turkish that best answer the query...

♥0
7.2k
Dec 1, 2025