arabic-token-eval

Evaluate Arabic tokenizers using root and pattern conservation metrics.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/chabirOael/tokenizers_evaluation --skill arabic-token-eval
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: arabic-token-eval
Source: https://github.com/chabirOael/tokenizers_evaluation/tree/main/.claude/skills/arabic-token-eval
Command: npx skills add https://github.com/chabirOael/tokenizers_evaluation --skill arabic-token-eval

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires qalsadi, farasapy, pyarabic, disambig-mle-calima-msa-r13, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill assesses the effectiveness of various Arabic tokenization approaches, including morphological preservation and segmentation quality, to improve NLP model performance.

Core Features & Use Cases

  • Tokenizer Evaluation: Compares subword, character, and morphology-aware tokenizers based on morphology metrics and downstream task results.
  • Intrinsic & Morphological Metrics: Calculates root, pattern, morpheme integrity, clitic separation, and fragmentation ratios to analyze tokenization quality.
  • Use Case: Researchers can use this Skill to select optimal tokenization strategies for Arabic NLP models, ensuring accurate root extraction and minimal fragmentation.

Quick Start

Use the arabic-token-eval skill to evaluate a new tokenizer on sample Arabic texts and examine morphology scores.

Frequently Asked Questions about arabic-token-eval

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I evaluate Arabic tokenizers for morphological preservation?

Arabic tokenizer evaluation computes morphological metrics like root and pattern conservation, morpheme integrity, clitic separation, and fragmentation ratios. This Skill compares subword, character, and morphology-aware tokenizers to ensure accurate root extraction and minimal fragmentation for NLP models.

How does root extraction work when evaluating Arabic tokenization quality?

Root extraction in Arabic tokenization evaluation uses Farasa and qalsadi libraries to analyze text. The Skill measures root and pattern conservation, verifying that tokenizers preserve essential morphological structures without excessive fragmentation.

Can I use qalsadi and Farasa for Arabic morphology evaluation?

Yes, you can use qalsadi and Farasa for Arabic morphology evaluation with this Skill. The implementation integrates these dependencies alongside pyarabic and disambig-mle-calima-msa-r13 to extract roots and compute tokenization quality metrics.

What are the key metrics for comparing Arabic subword and character tokenizers?

Key metrics for comparing Arabic tokenizers include root conservation, pattern conservation, morpheme integrity, clitic separation, and fragmentation ratios. These metrics help researchers select optimal tokenization strategies ensuring accurate root extraction and minimal fragmentation.

When do I need to assess clitic separation in Arabic NLP tokenization?

You need to assess clitic separation in Arabic NLP tokenization when selecting optimal strategies for language models. Evaluating clitic separation and fragmentation ratios ensures the tokenizer maintains morphological integrity and accurate root extraction for downstream tasks.