Libraries and tools guide

Libraries & Tools

The libraries, models and resources used in Arabic processing, with each one's license as stated at its official source, the verification date, and whether it needs a model or the internet. Check the license before any commercial use.

Software libraryMIT

CAMeL Tools

An open-source Python toolkit for Arabic processing from the CAMeL Lab at New York University Abu Dhabi: normalization, tokenization, morphological analysis and disambiguation, tagging, dialect identification, sentiment analysis and named entity recognition.

In the lab: Full morphological analysis, lemmatization, segmentation and dialect identification for the lab's optional Python engine.

Languages
Modern Standard Arabic and dialects
Needs a model
Yes, for most functions
Needs internet
Only on first download
Works locally
Yes
Requirements
Python 3.11 or later (per PyPI for version 1.6.0), and space for the data packages

The code is MIT-licensed (the LICENSE file in the repository and on PyPI). The data and model packages are downloaded separately and each has its own terms; review them before commercial use.

License checked: 2026-11-17 — PyPI camel-tools 1.6.0 + raw.githubusercontent.com/CAMeL-Lab/camel_tools/master/LICENSE

Official website
Software libraryApache-2.0

Hugging Face Transformers

A library for loading, fine-tuning and running pre-trained models (transformers), plus the Hub platform, which hosts thousands of models and datasets.

In the lab: Running AraBERT, CAMeLBERT, MARBERT and MarianMT in an external engine.

Languages
Multilingual
Needs a model
Yes
Needs internet
To download models
Works locally
Yes, after download
Requirements
Python 3.11+ (version 5.x), PyTorch or an alternative, GPU preferred

The library is licensed under Apache-2.0. Each model on the Hub has its own license stated on its card, and sometimes no license is stated.

License checked: 2026-11-17 — PyPI transformers 5.23.0 + raw LICENSE

Official website
Software libraryGPL-3.0

PyArabic

A Python library for character-level Arabic text processing: removing diacritics and tatweel, unifying hamzas, tokenization, and converting numbers to words.

In the lab: Normalization and cleaning operations similar to the preprocessing module.

Languages
Arabic
Needs a model
No
Needs internet
No
Works locally
Yes
Requirements
Python

The LICENSE file in the repository is GNU GPL v3. Any program distributed bundled with it is bound by the GPL terms.

License checked: 2026-11-17 — PyPI pyarabic 0.6.15 + raw.githubusercontent.com/linuxscout/pyarabic/master/LICENSE

Official website
Software libraryApache-2.0

NLTK

An educational and research toolkit for language processing in Python: tokenization, stemming (including ISRI for Arabic), tagging, corpora and metrics.

In the lab: The reference for the ISRI stemmer ported into the lab and for the stop-word list.

Languages
Multilingual (limited Arabic support)
Needs a model
No for most tools
Needs internet
To download corpora only
Works locally
Yes
Requirements
Python 3.10+ (version 3.10.4)

The code is licensed under Apache-2.0. Some bundled corpora have different licenses.

License checked: 2026-11-17 — PyPI nltk 3.10.4 + raw LICENSE.txt

Official website
Software libraryMIT

spaCy

An industrial-strength language processing library with fast pipelines (tokenization, tagging, parsing, entities).

In the lab: For Arabic: only a tokenizer and language data are available (spacy.blank("ar")); there is no official trained Arabic pipeline.

Languages
More than 70 languages (Arabic without an official trained model)
Needs a model
للخطوط المدربة نعم;
Needs internet
No
Works locally
Yes
Requirements
Python 3.10+ (version 3.8.18)

The library is MIT-licensed. The official models page lists "none yet" for trained Arabic pipelines.

License checked: 2026-11-17 — PyPI spacy 3.8.18 + raw LICENSE + spacy.io/models

Official website
Software libraryGPL-3.0

Stanford CoreNLP

A Java toolkit from the Stanford NLP Group: tokenization, tagging, parsing and entities, with Arabic support in some components.

In the lab: A historical reference; Stanza is preferred for modern use from Python.

Languages
English, Arabic, Chinese, French, German, Spanish and others
Needs a model
Yes
Needs internet
To download models
Works locally
Yes
Requirements
Java 8+, a lot of memory

The LICENSE.txt file in the repository is GNU GPL v3 (commercial licenses are available from Stanford for those who need them).

License checked: 2026-11-17 — raw.githubusercontent.com/stanfordnlp/CoreNLP/main/LICENSE.txt

Official website
Software libraryApache-2.0

Stanza

A Python library from Stanford with neural pipelines: tokenization, lemmatization, tagging, dependency parsing and entities, trained on Universal Dependencies treebanks.

In the lab: An option for the Python engine for dependency parsing.

Languages
About 70–80 languages (according to its official pages)
Needs a model
Yes
Needs internet
To download models
Works locally
Yes
Requirements
Python 3.9+, PyTorch

The code is licensed under Apache-2.0. The models are trained on UD treebanks, each with its own license (for example UD Arabic-PADT under CC BY-NC-SA 3.0). Check that the Arabic model is available and check its treebank license before commercial use.

License checked: 2026-11-17 — PyPI stanza 1.15.1 + raw LICENSE + stanfordnlp.github.io/stanza

Official website
Software libraryFree for academic and research purposes

Farasa

An Arabic toolkit from the Qatar Computing Research Institute (QCRI): Segmenter, lemmatization, tagging, entities and diacritization, notable for its speed.

In the lab: Its segmenter was used in the preprocessing of AraBERT v1.

Languages
Arabic
Needs a model
Yes (bundled models)
Needs internet
لواجهة الويب فقط; ال
Works locally
Yes (Java)
Requirements
Java; or farasapy in Python

The official Farasa page: "Free for Academic and Research purposes" and "For non-research use, please contact us". Commercial use requires contacting QCRI. The farasapy wrapper on PyPI is MIT-licensed, but it does not change the terms of Farasa itself.

License checked: 2026-11-17 — farasa.qcri.org (terms text) + raw.githubusercontent.com/MagedSaeed/farasapy/master/LICENSE

Official website
modelNot stated on the model card

AraBERT

An Arabic language model built on the BERT architecture from the AUB MIND Lab, trained on large Modern Standard Arabic corpora, with versions v0.2 and v2.

In the lab: Text classification, sentiment, entities, and question answering after fine-tuning.

Languages
Mainly Modern Standard Arabic
Needs a model
Yes (trained weights)
Needs internet
To download the weights
Works locally
Yes, after download
Requirements
Transformers + PyTorch; v2 needs Farasa segmentation in preprocessing, according to the model card

The model card on Hugging Face does not state a license (checked 2026-11-17). Do not assume permission for commercial use without reviewing the authors' repository.

License checked: 2026-11-17 — huggingface.co/aubmindlab/bert-base-arabertv2

Official website
modelNot stated on the model card

MARBERT / MARBERTv2

Two models from the University of British Columbia (UBC-NLP) trained on large Arabic data that includes dialectal tweets, so they suit colloquial text.

In the lab: Sentiment, dialect identification and social media text.

Languages
Modern Standard Arabic and dialects
Needs a model
Yes
Needs internet
To download the weights
Works locally
Yes, after download
Requirements
Transformers + PyTorch

The MARBERT and MARBERTv2 cards on Hugging Face do not state a license (checked 2026-11-17). Review the authors' terms before commercial use.

License checked: 2026-11-17 — huggingface.co/UBC-NLP/MARBERT + huggingface.co/UBC-NLP/MARBERTv2

Official website
modelApache-2.0

CAMeLBERT

A family of Arabic BERT models from the CAMeL Lab trained on Modern Standard Arabic (MSA), dialectal Arabic (DA), Classical Arabic (CA) and a mix, with models fine-tuned for tasks such as dialect identification (MADAR-26), sentiment and entities.

In the lab: Running a trained dialect, entity or sentiment classifier through an external engine.

Languages
Modern Standard, dialectal and Classical Arabic
Needs a model
Yes
Needs internet
To download the weights
Works locally
Yes, after download
Requirements
Transformers + PyTorch

The bert-base-arabic-camelbert-mix, camelbert-da and camelbert-mix-did-madar-corpus26 cards state License: apache-2.0 (checked 2026-11-17).

License checked: 2026-11-17 — huggingface.co/CAMeL-Lab (3 model cards)

Official website
modelApache-2.0

OPUS-MT (MarianMT)

Neural translation models from the University of Helsinki built with the Marian framework, including ar→en and en→ar.

In the lab: An optional translation engine for the machine translation module.

Languages
Many language pairs, including Arabic
Needs a model
Yes
Needs internet
To download the weights
Works locally
Yes (runs on CPU)
Requirements
Transformers + PyTorch + sentencepiece

The opus-mt-ar-en and opus-mt-en-ar cards state License: apache-2.0. The en-ar model requires a target language token such as >>ara<< according to its card.

License checked: 2026-11-17 — huggingface.co/Helsinki-NLP/opus-mt-ar-en + opus-mt-en-ar

Official website
modelCC-BY-NC-4.0

NLLB-200

A multilingual translation model from Meta covering 200 languages, including Modern Standard Arabic and several Arabic dialects.

In the lab: Research translation only, because of the license.

Languages
200 languages
Needs a model
Yes
Needs internet
To download the weights
Works locally
نعم (الإصدار المقطَّ
Requirements
Transformers + PyTorch

Non-commercial license. The model card says it is "primarily intended for research" and "not released for production deployment".

License checked: 2026-11-17 — huggingface.co/facebook/nllb-200-distilled-600M

Official website
Linguistic resourceCC BY-SA 3.0

Arabic WordNet

An Arabic semantic network in the WordNet style that links words to synonym sets (Synsets) and semantic relations; the version available in the Open Multilingual Wordnet is AWN v2.

In the lab: Synonyms and semantic relations for query expansion.

Languages
Arabic
Needs a model
No (lexical resource)
Needs internet
To download it only
Works locally
Yes
Requirements
NLTK (omw) or XML files

The Open Multilingual Wordnet table lists Arabic WordNet (AWN v2) as "CC BY SA 3.0", with 9,916 synsets and 17,785 words.

License checked: 2026-11-17 — compling.hss.ntu.edu.sg/omw

Official website
Linguistic resourceEach treebank has its own license

Universal Dependencies

An international project to standardize part-of-speech tags, morphological features and dependency relations across more than 100 languages; its Arabic treebanks include PADT and NYUAD.

In the lab: The part-of-speech tag set and relations used in the tagging and parsing modules.

Languages
More than 100 languages
Needs a model
No (data)
Needs internet
To download it only
Works locally
Yes
Requirements
CoNLL-U files

Project page: each treebank must specify an open license (mostly Creative Commons). UD_Arabic-PADT: CC BY-NC-SA 3.0 (non-commercial) according to the LICENSE.txt file in its repository.

License checked: 2026-11-17 — universaldependencies.org/introduction.html + raw UD_Arabic-PADT/LICENSE.txt

Official website
Software libraryLGPL-2.1-only

Gensim

A Python library for topic modeling, training Word2Vec and FastText, and loading vectors.

In the lab: Training vectors or converting them to the .vec text format for import into the embeddings module.

Languages
Language-independent
Needs a model
It trains its own models
Needs internet
No
Works locally
Yes
Requirements
Python 3.9+, NumPy, SciPy

LGPL-2.1-only license according to PyPI.

License checked: 2026-11-17 — PyPI gensim 4.4.0

Official website
Software libraryMIT

fastText

A library from Meta for training word embeddings with character pieces and for fast text classification, with ready-made vectors for 157 languages.

In the lab: Trained Arabic vectors, part of which can be converted to .vec and imported.

Languages
157 languages (for the ready-made vectors)
Needs a model
Yes for the ready-made vectors
Needs internet
To download them
Works locally
Yes
Requirements
C++ or Python

The library is MIT-licensed according to PyPI. The ready-made vectors are published under their own terms on the fastText website.

License checked: 2026-11-17 — PyPI fasttext 0.9.3

Official website