Logo Lanfrica

sudaverse/sudaverse-normalizer

Domain:

natural language processing

Record type:

softwaretools
Creator:
sud
Host:
Sudanese Arabic text normalization and cleaning toolkit # Sudaverse Normalizer ๐Ÿ‡ธ๐Ÿ‡ฉ A robust, production-ready text normalizer specifically designed for **Sudanese Arabic dialect**. This tool handles the unique characteristics of Sudanese Arabic, including dialect-specific spelling variations, colloquialisms, and mixed Arabic-Latin text. ## โœจ Features - **๐ŸŽฏ Sudanese Dialect-Specific**: Tailored for Sudanese Arabic text patterns and common expressions - **๐Ÿ”ค Unicode Normalization**: Proper handling of Arabic text encoding (NFKC, NFC, NFD, NFKD) - **๐Ÿ“ Diacritic Handling**: Remove or preserve Arabic diacritics (tashkeel) with flexible options - **๐Ÿ”ข Number Normalization**: Convert Arabic-Indic numerals to Western numerals - **โœ‚๏ธ Character Normalization**: - Normalize all Alef variants (ุฃุŒ ุฅุŒ ุขุŒ ูฑ) to ุง - Normalize Yeh variants (ู‰ุŒ ุฆ) to ูŠ - Normalize Teh Marbuta (ุฉ) to Heh (ู‡) - **๐Ÿงน Cleaning Features**: - Remove URLs, emails, mentions, and hashtags - Remove HTML/XML tags and unrecognized special characters - Remove decorative lines made of tatweel/kashida characters (ู€ู€ู€ู€ู€ู€ู€ู€ู€ู€ู€) - Remove English/Latin text and timestamps - Remove repeated characters (e.g., "ูƒุชูŠูŠูŠูŠูŠุฑ" โ†’ "ูƒุชูŠูŠุฑ") - Normalize punctuation and whitespace - **โš™๏ธ Highly Configurable**: 20+ configuration options for custom normalization pipelines - **๐Ÿ“Š Batch Processing**: Efficient folder-based processing with real-time progress tracking - **๐Ÿ“ˆ Statistics**: Get detailed statistics about text transformation ## ๐Ÿ“ฆ Installation ### Requirements - Python 3.7 or higher ### Install Dependencies ```bash pip install -r requirements.txt ``` ## ๐Ÿš€ Quick Start Guide ### For First-Time Users #### Step 1: Prepare Your Text Files 1. Open the `raw-text` folder in your project directory 2. Place your Sudanese Arabic text files (`.txt` format) in this folder 3. You can have as many files as you want! #### Step 2: Run the Batch Processor Open your terminal in the project directory and run: ```bash python batch_processor.py ``` #### Step 3: Get Your Results - โœ… Normaliz โ€ฆ