Skip to main content
ToolPotion
AI Advisor
Submit a Tool (Free)

LIDstral Arabic

AI ModelsAI Models & LLMsOpen source · Web

LIDstral Arabic is a language and dialect classifier for Arabic script. It identifies Modern Standard Arabic, various Arabic dialects, and non-Arabic languages using the same script, enhancing language distinction.

View Model
Share
View Model
Share

LIDstral Arabic is a sophisticated language and dialect classifier designed for text written in Arabic script. It is capable of identifying Modern Standard Arabic, a wide range of Arabic dialects, and non-Arabic languages that utilize the same script. This capability is crucial for distinguishing languages that share a script, preventing misclassification based solely on script appearance.

Read More

The model employs a combination of a fastText one-vs-all (OVA) classifier, an MLP stacker, and per-class isotonic calibration. The fastText OVA classifier generates independent scores for each class, maintaining evidence for competing languages and dialects. The MLP stacker, a 64-unit LayerNorm MLP, maps these scores to probabilities across classes, utilizing 144 features derived from raw scores, prior corrections, confidence margins, entropy, and regional summaries.

Per-class isotonic regressors are fitted on development predictions to calibrate the MLP probabilities, which are then renormalized across classes. This calibration process can alter both the confidence and the predicted label. The full pipeline requires three files: lid_ova_full.bin, mlp_stacker_ln.pt, and isotonic_calibration.pkl. The classify.py script runs the pipeline on CPU, including preprocessing and feature extraction, providing a predicted label and calibrated probabilities over all 51 classes for each input.

LIDstral Arabic has been evaluated on 84,870 Arabic examples from various benchmarks, achieving an 88.67% F1 score on Moroccan Darija, significantly outperforming other models like LahjatBERT ALDi CL and GlotLID v3. However, the model always assigns one of its 51 supported classes, which may lead to misclassification of unsupported languages or mixed-language text.

The model is licensed under the Apache 2.0 License, and users must ensure that their use does not infringe on third-party rights.

  • CategoryAI Models & LLMs
  • Pricing ModelOpen source
  • DeploymentCloud
  • PlatformsWeb

  • Language and dialect classification

  • Modern Standard Arabic identification

  • Arabic dialect identification

  • Non-Arabic language distinction

  • fastText OVA classifier

  • MLP stacker with LayerNorm

  • Per-class isotonic calibration

  • 51 supported classes

  1. Access model: Download repository

  2. Authenticate: Set up environment

  3. Set up environment: Install dependencies

  4. Integrate via API: Use classify.py script

  5. Optimize: Calibrate probabilities

  • Arabic Text Classification
  • Dialect Identification
  • Non-Arabic Language Detection
  • Multilingual Text Analysis
  • Language Distinction

From Mistral AI

LIDstral Arabic Reviews

Loading...

Popular AI Tools Like LIDstral Arabic

Llama-3.1-8B-Instruct is a multilingual large language model developed by Meta, optimized for instruction-based tasks. It is designed for commercial and research applications,…

AI Models & LLMs
View Tool

Multilingual large language model developed by Meta, optimized for instruction-based tasks. It is designed for commercial and research applications,…Llama-3.1-8B-Instruct is a multilingual large language model developed by Meta, optimized for instruction-based tasks. It is designed for commercial and research applications,…

FeaturedAI Models & LLMs
See the Top 5 AI Models

XLM-RoBERTa is a multilingual model pre-trained on 2.5TB of data across 100 languages. It excels in tasks like sequence classification and token classification, making it a…

AI Models & LLMs
View Tool

Multilingual model pre-trained on 2.5TB of data across 100 languages. It excels in tasks like sequence classification and token classification, making it a…XLM-RoBERTa is a multilingual model pre-trained on 2.5TB of data across 100 languages. It excels in tasks like sequence classification and token classification, making it a…

FeaturedAI Models & LLMs
See the Top 5 AI Models

Llama-4 Maverick 17B-128E Instruct is a multimodal AI model developed by Meta, designed for advanced text and image understanding. It leverages a mixture-of-experts architecture…

AI Models & LLMs
View Tool

Multimodal AI model developed by Meta, designed for advanced text and image understanding. It leverages a mixture-of-experts architecture…Llama-4 Maverick 17B-128E Instruct is a multimodal AI model developed by Meta, designed for advanced text and image understanding. It leverages a mixture-of-experts architecture…

AI Models & LLMs
See the Top 5 AI Models

Mistral-7B-v0.1 is a pretrained generative text model with 7 billion parameters, designed to advance artificial intelligence through open source. It outperforms Llama 2 13B on…

AI Models & LLMs
View Tool

Pretrained generative text model with 7 billion parameters, designed to advance artificial intelligence through open source. It outperforms Llama 2 13B on…Mistral-7B-v0.1 is a pretrained generative text model with 7 billion parameters, designed to advance artificial intelligence through open source. It outperforms Llama 2 13B on…

FeaturedAI Models & LLMs
See the Top 5 AI Models

BAAI/bge-reranker-v2-m3 is a lightweight, multilingual reranker model designed for fast inference and easy deployment. It outputs similarity scores for queries and documents,…

AI Models & LLMs
View Tool

Lightweight, multilingual reranker model designed for fast inference and easy deployment. It outputs similarity scores for queries and documents,…BAAI/bge-reranker-v2-m3 is a lightweight, multilingual reranker model designed for fast inference and easy deployment. It outputs similarity scores for queries and documents,…

AI Models & LLMs
See the Top 5 AI Models

PaddleOCR-VL-1.6 is an advanced document parsing model that enhances region refinement and post-training processes. It achieves state-of-the-art accuracy on OmniDocBench,…

AI Models & LLMs
View Tool

Advanced document parsing model that enhances region refinement and post-training processes. It achieves state-of-the-art accuracy on OmniDocBench,…PaddleOCR-VL-1.6 is an advanced document parsing model that enhances region refinement and post-training processes. It achieves state-of-the-art accuracy on OmniDocBench,…

AI Models & LLMs
See the Top 5 AI Models

OpenELM is a state-of-the-art open language model family from Apple Machine Learning Research. It features a layer-wise scaling strategy for enhanced accuracy and provides a…

AI Models & LLMs
View Tool

State-of-the-art open language model family from Apple Machine Learning Research. It features a layer-wise scaling strategy for enhanced accuracy and provides a…OpenELM is a state-of-the-art open language model family from Apple Machine Learning Research. It features a layer-wise scaling strategy for enhanced accuracy and provides a…

AI Models & LLMs
See the Top 5 AI Models

Multi-language library designed for extracting structured, validated data from large language models (LLMs). It supports over 15 providers and offers features like…Instructor is a multi-language library designed for extracting structured, validated data from large language models (LLMs). It supports over 15 providers and offers features like…

FeaturedMachine Learning Platforms
See the Top 50 AI Frameworks
1 of 8