Skip to main content

A natural language processing toolkit designed for the Azerbaijani language.

Project description

NLTKaz Banner

NLTKAZ 📚

NLTKAZ is a natural language processing toolkit designed for the Azerbaijani language making it easier to preprocess Azerbaijani text for NLP tasks.

Installation ⬇️

pip install nltkaz

Features 🧩

Currently provided features:

  • Stemming: Reduce words to their root forms.
  • Stopword Removal: Easily remove common Azerbaijani stopwords from text.
  • Tokenization: Tokenize text into words, sentences, or tweets.

Usage ⚙️

Stemming

from nltkaz import Stemmer

# Initialize stemmer with the appropriate keyboard type
# Use 'az' for Azerbaijani text or 'en' if the text is typed using an English keyboard
stemmer = Stemmer(keyboard="az")

# Stem your string
stemmed_string = stemmer.stem("your_string")

Stopword Removal

from nltkaz import load, remove

# Load stopwords
stopwords = load()

# Remove stopwords from the given string
result = remove(stopwords=stopwords, sentence="your_string")

Tokenization

Word Tokenizer

from nltkaz import wordTokenize

words = wordTokenize("your_string")

Sentence Tokenizer

from nltkaz import sentenceTokenize

sentences = sentenceTokenize("your_string")

Tweet Tokenizer

from nltkaz import tweetTokenize

tweets = tweetTokenize("your_string")

Author 🧑‍💻

  • Nagi Nagiyev

Contact 📧

Gmail: nagiyevnagi01@gmail.com.

Linkedin: https://www.linkedin.com/in/naginagiyev/

License 📜

MIT License


This project is in early development. Contributions and feedback are welcome! 🤝

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

nltkaz-0.2.0.tar.gz (397.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nltkaz-0.2.0-py3-none-any.whl (396.4 kB view details)

Uploaded Python 3

File details

Details for the file nltkaz-0.2.0.tar.gz.

File metadata

  • Download URL: nltkaz-0.2.0.tar.gz
  • Upload date:
  • Size: 397.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for nltkaz-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fc9341a18d2b8cfcea4892d7b5aa77c3fb754dd1c927fda08f3646d5349904a6
MD5 1d68630dca4df4904a9efc32076f95a6
BLAKE2b-256 33e64dfd29d39c9b2f9a1fa29e290ee6d42755136c78b14d20f27cc4a03c20f0

See more details on using hashes here.

File details

Details for the file nltkaz-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: nltkaz-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 396.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for nltkaz-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6771b72f85c6bf20938ab5bbd3827abad4318feff20d1530105e87b27c3ba958
MD5 23cdebd7ce2e2ff1fe22e5cb87c4c632
BLAKE2b-256 995acb0e6593a83d956f05147c109fe598f3c1077151be8bd4c81e775dc12816

See more details on using hashes here.

Supported by

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