Skip to main content

Adawat: Arabic Language Toolkit

مكتبة أدوات اللغة العربية

Adawat: Arabic Language Toolkit

adawat logo

adawat logo

PyPI - Downloads

PyPI - Downloads

Developpers: Taha Zerrouki: http://tahadz.com taha dot zerrouki at gmail dot com

Features

value

Authors

Authors.md

Release

0.1

License

GPL

Tracker

linuxscout/adawat/Issues

Source

Github

Feedbacks

Comments

Accounts

[@Twitter](https://twitter.com/linuxscout))

Description

Adawat: Arabic Language Toolkit

مزايا:

تجمع هذه المكتبة كل الأدوات المستعملة في معالجة النص العربي مثل:

  • التشكيل
    • تشكيل النص العربي، يستحسن استعمال مكتبة مشكال، أو برنامج مشكال

    • تشكيل مع اقتراحات تشكيلات أخرى لكل كلمة

    • اختزال الحركات من النص المشكول

    • إزالة التشكيل

    • مقارنة جملة مشكولة يدويا مع ما ينتج عن برنامج التشكيل

    • وظائف التحويل

  • نقحرة النص العربي بحروف لاتينية
    • تعريب نص مكتوب بحروف لاتينية

    • قلب نص

    • تفقيط: تحويل عدد إلى نص

    • تنميط النص: توحيد الهمزات والألفات

    • فك تشابك الحروف العربية

    • التحليل والتوليد

  • تحليل صرفي للنص
    • تفريق النص إلى كلمات وعلامات

    • تصنيف الكلمات إلى اسم وفعل وحرف

    • توليد كل الأشكال المختلفة للكلمة

    • استخلاص

  • استخلاص المتلازمات اللفظية
    • كشف اللغات المختلفة

    • استخلاص المسميات

    • استخلاص العبارات العددية

  • متفرقات
    • ضبط قصيدة شعرية عمودية

    • توليد نص عشوائي

Features

  • Tashkeel
    • tashkeel : vocalize text, we recomand to use mishkal-console instead.

    • tashkeel with suggestions for every word.

    • reduce : strip unnecessary tashkeel from avocalized text

    • strip : remove all harakat and shadda

    • compare : Compare Tashkeel between input text and the automatic vocalized text

  • Transformation and Converion
    • romanize : convert an arabic script text to latin representation

    • arabize : convert an transliterated arabic script text to arabic

    • inverse : inverse text

    • numbers to words : convert numeric value to words

    • normalize : normalize letters in arabic text

    • unshape : unshape arabic letters

  • Analysis and generation
    • stem : morphology analysis of given texts

    • tokenize : tokenize a text to words

    • wordtag : classify words into (nouns, verbs, stopwords)

    • affixate : generate all word forms by affixation

  • Extraction
    • collocation : extract collocations from text

    • language : detect arabic and latin clauses in text

    • named : extract named enteties from text

    • numbered : extarct numbred clauses from text

  • Divers
    • affixate : generate all word forms by affixation

    • poetry : format poetry texts to columns poetry

    • random : get a random text

Citation

@thesis{zerrouki2020adawat,
author = {Taha Zerrouki},
title = {Towards An Open Platform For Arabic Language Processing},
type = {PhD thesis},
institution = {Ecole Nationale Supérieure d'informatique, Alger, Algérie},
date = {2020},
}

Usage

install

pip install adawat

import

>>> import adawat.adaat

Examples

Detailed examples and features in Features

Tashkeel

  • tashkeel : vocalize text, we recomand to use mishkal-console instead.

  • tashkeel with suggestions for every word.

  • reduce : strip unnecessary tashkeel from avocalized text

  • strip : remove all harakat and shadda

  • compare : Compare Tashkeel between input text and the automatic vocalized text

>>> lastmark = True
>>> text = u"تطلع الشمس صباحا"
>>> adawat.adaat.tashkeel_text(text, lastmark)
' تَطْلُعُ الشَّمْسُ صَبَاحًا'

[requirement]

asmai>=0.1
mishkal>=0.3
naftawayh>=0.4
pyarabic>=0.6.8
qalsadi>=0.3.6
repr>=0.3.1
spellcheck>=1.0.2
sylajone>=0.2
tashaphyne>=0.3.4.1

Metadata

Release files for adawat 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adawat 0.1
File Size Uploaded Provenance Actions
adawat-0.1.tar.gz 21.8 kB Without provenance Details for adawat-0.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for adawat 0.1
File Interpreter ABI Platform Actions
adawat-0.1-py3-none-any.whl Python 3 none any Details for adawat-0.1-py3-none-any.whl
adawat-0.1-py2-none-any.whl Python 2 none any Details for adawat-0.1-py2-none-any.whl

Total release size: 74.8 kB

Release files / adawat-0.1.tar.gz

Download URL adawat-0.1.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1740a0aa34a9b56ef385b846a2e79db4aa17a73d90cb9e0250f0fafeb467eb35
BLAKE2b-256 checksum
How to use checksums
35650c8252cc3da395fdf271933fd7fc8c41d8b1d008978c35330a50596cd4cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/2.7.12

Release files / adawat-0.1-py3-none-any.whl

Download URL adawat-0.1-py3-none-any.whl
Size 28.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd1f6574357e9cf3df359b7891052a4542cc459a2608f2ff7d79214e68417a5b
BLAKE2b-256 checksum
How to use checksums
2ba9c5ec2da0424cde5cbd79a77540df87dc598b523484d42c76dc76d2cf134f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/2.7.12

Release files / adawat-0.1-py2-none-any.whl

Download URL adawat-0.1-py2-none-any.whl
Size 25.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
3f47ff869db87ae1ab41202057ba5568d23ec7c619e29f763262df42422229bd
BLAKE2b-256 checksum
How to use checksums
aae9753bad792624601e11bd28758148e0e215bc89d9369433806c75ed773ece
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/2.7.12

Security for adawat 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

3 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page