Skip to main content

This project is a collection of Natural Language Processing tools for Kurdish Language.

Project description

Aamraz - Kurdish NLP collection

Overview

Aamraz which is written "ئامراز" in kurdish script means "instrument". This project is a collection of Natural Language Processing tools for Kurdish Language. Despite being spoken by millions, Kurdish remains an under-resourced language in Natural Language Processing (NLP). Recognizing the rich cultural heritage and historical significance of the Kurdish people, we—regardless of ethnicity—are committed to advancing tools and pre-trained models that empower the Kurdish language in modern research and technology. Our work aims to foster further development and provide a foundation for future research and applications in NLP.

Base Features

  • Normalization
  • Tokenization
  • Stemming
  • Word Embedding: Creates vector representations of words.
  • Sentences Embedding: Creates vector representations of sentences.

Tools

Installation

pip install aamraz

PretrainedModels

some useful pre-trained Models:

Model Version Description Size
FastText WordEmbedding 2 Model trained using FastText method on our own Corpus.
This is bot the fasttext & skip-gram model itself (fasttext model.
~ 2.3 GB
FastText WordEmbedding - Lite 1 Model trained using FastText method on our own Corpus.
This is bot the fasttext & skip-gram model itself (fasttext model.
~ 800 MB
Word2vec Model 1 Including needed .bin and .npy files. Find other vector sizes Here ~ 92 MB

Usage

import aamraz

# Normalization
normalizer= aamraz.Normalizer()
sample_sentence="قڵبە‌کە‌م‌ بە‌  کوردی‌  قسە‌ دە‌کات‌."
normalized_sentence=normalizer.normalize(sample_sentence)
print(normalized_sentence)

# Tokenization
tokenizer = aamraz.WordTokenizer()
sample_sentence="زوانی له دربره"
tokens = tokenizer.tokenize(sample_sentence)
print(tokens)

# Embedding by fasttext
model_path = 'kurdish_fasttext_skipgram_dim300_v1.bin'
embedding_model = aamraz.EmbeddingModel(model_path, dim=50)

sample_word="ئامراز"
sample_sentence="زوانی له دربره"

word_vector = embedding_model.word_embedding(sample_word)
sentence_vector = embedding_model.sentence_embedding(sample_sentence)

print(word_vector)
print(sentence_vector)

# Embedding by word2vec
model_path = 'kurdish_word2vec_model_dim100_v1.bin'
embedding_model = aamraz.EmbeddingModel(model_path, type='word2vec')

sample_word="ئامراز"
sample_sentence="زوانی له دربره"

word_vector = embedding_model.word_embedding(sample_word)
sentence_vector = embedding_model.sentence_embedding(sample_sentence)

print(word_vector)
print(sentence_vector)

# Stemming
stemmer=aamraz.Stemmer(method='simple')
stemmed=stemmer.stem("کتێبەکانمان")
print(stemmed)

License

This project is licensed under the MIT License. You are free to use, distribute, modify, and build upon this work, even for commercial purposes, as long as you include a copy of the original MIT License and provide proper attribution.

To view a copy of this license, visit: https://opensource.org/licenses/MIT

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

aamraz-0.0.8.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

aamraz-0.0.8-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file aamraz-0.0.8.tar.gz.

File metadata

  • Download URL: aamraz-0.0.8.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for aamraz-0.0.8.tar.gz
Algorithm Hash digest
SHA256 3bfe929eba7d43b4c3efbf76485d6af0eb127246652d0c4fc12761fcf2ea7a40
MD5 154a1aad27cdba0d9ad3884f8d9b1bb4
BLAKE2b-256 3ed61ec831abeae7cafa972d440e834d99ac9e94da93cf53a87c1ea42a756c42

See more details on using hashes here.

File details

Details for the file aamraz-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: aamraz-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for aamraz-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8208cb2d4a886436a225804bab097b3bde51e7c88f22c3260896e7b76e8184ce
MD5 54a13504b3bc101692752d508b10f16e
BLAKE2b-256 f678d1b0cbcee4fa5bf75b50b0eecdbb348c4121205095da90b956a8d4fc7305

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