Skip to main content

A stemmer for the Arabic language

Project description

cooc_ar_stemmer

A stemmer for the Arabic language

Comparison to other stemmers for the Arabic language:

Stemmer Test Accuracy
This work
cooc_ar_stemmer 0.7469
Other stemmers
Lucene Arabic Analyzer 0.5510
Shereene Khoja Stemmer 0.5494
ISRIStemmer 0.5397
ArabicProcessingCog 0.2361
Arabic-Stemming-Toolkit AST 0.2358
Tashaphyne: Arabic Light Stemmer 0.2332
Assem's Arabic Light Stemmer 0.2310
FARASA 0.2303
Al Khalil Morpho Sys Stemmer 0.2195
Qutuf 0.1923

Based on the work:
@ARTICLE {iskanderakhmetovalexandrpakirinaualiyevaalexandergelbukh2020,
author = "Iskander Akhmetov, Alexandr Pak, Irina Ualiyeva, Alexander Gelbukh",
title = "Highly Language-Independent Word Lemmatization Using a Machine-Learning Classifier",
journal = "Computacion y Sistemas",
year = "2020",
volume = "24",
number = "3",
pages = "1353-1364",
month = "sep" }\

Installation:

pip install cooc_ar_stemmer

Usage:

import cooc_ar_stemmer.ar_stem as cas
cas.stem_it('شطط')

# Output: 'شط'

# You can also provide a list of words:
cas.stem_it(['شطط', 'ضحي'])

# Output: ['شط', 'ضحى']

The model files can be downloaded at https://drive.google.com/file/d/1VRqygWHz81UqF6e5zVceP37lhMax90n0/view?usp=sharing

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

cooc_ar_stemmer-0.1.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

cooc_ar_stemmer-0.1.1-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file cooc_ar_stemmer-0.1.1.tar.gz.

File metadata

  • Download URL: cooc_ar_stemmer-0.1.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.7

File hashes

Hashes for cooc_ar_stemmer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 74eee9e39ed587fc3f6117880d640d38c46ab1d07e357792460138c11e3eff21
MD5 47865514685ba1f1e2a9a49b23f63360
BLAKE2b-256 237d8494f242a2a23ca863371a43d70bb157eb0d11a75f025d28b78f3ab63a3d

See more details on using hashes here.

File details

Details for the file cooc_ar_stemmer-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cooc_ar_stemmer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27c9918f18cd27eb5760a620454474701d50921dfc5e46ca5b51fa60d440f812
MD5 a71823a71a2191671f8d340bb05322fa
BLAKE2b-256 20b2ac47a82da42051b8bff586e5bf79288211f6d38d4b54d34e6965f1e997d2

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