daa-pairs
收藏资源简介:
daa-pairs 是一个经过随机化处理的摩洛哥达里贾语短语对数据集,专为多文字变体的语言处理任务设计。该数据集旨在提供地道的达里贾语(摩洛哥阿拉伯语方言)自然语言示例,并特别关注其在实际使用中常见的多文字混合现象。每个数据样本(短语)均以三种不同的文字变体呈现:标准的阿拉伯文脚本、使用拉丁字母书写的阿拉伯文(Arabizi),以及自然语码转换的混合文字(Mixte,即阿拉伯文脚本与用于外来词的法语/英语/西班牙语拉丁字母混合)。数据集包含80,164个短语片段,来源于9,176个独特的视频和新闻文章源。数据字段包括标识来源的`video_id`和`article_id`,以及三种文字变体对应的`arabic`、`arabizi`和`mixte`。数据生成过程结合了真实的摩洛哥语料(来自YouTube视频转录和新闻文章)与大语言模型(基于Google Gemma 4)的创造性重新表述,确保了短语的自然性和语法地道性,并强制模型进行自然的语码转换。后处理阶段对片段顺序进行了随机化,以消除生成过程中可能存在的顺序偏差,使数据集更适用于训练不依赖于位置模式的机器学习模型。该数据集适用于摩洛哥达里贾语的机器翻译、文字转换、语码转换研究、多模态语言建模以及方言自然语言处理等任务。
daa-pairs is a randomized dataset of Moroccan Darija phrase pairs, designed for language processing tasks involving multiple script variants. It aims to provide authentic natural language examples in Darija (Moroccan Arabic dialect), with a special focus on the common phenomenon of multi-script mixing in practical usage. Each data sample (phrase) is presented in three different script variants: standard Arabic script, Arabic written with Latin letters (Arabizi), and mixed script with natural code-switching (Mixte, which combines Arabic script with Latin letters for foreign words from French/English/Spanish). The dataset contains 80,164 phrase segments, sourced from 9,176 unique video and news article sources. Data fields include `video_id` and `article_id` for source identification, as well as `arabic`, `arabizi`, and `mixte` corresponding to the three script variants. The data generation process combines real Moroccan corpora (from YouTube video transcriptions and news articles) with creative rephrasing using large language models (based on Google Gemma 4), ensuring the naturalness and grammatical authenticity of phrases while enforcing natural code-switching. In the post-processing stage, the segment order is randomized to eliminate potential sequential biases from generation, making the dataset more suitable for training machine learning models that do not rely on positional patterns. This dataset is applicable to tasks such as machine translation, script conversion, code-switching research, multimodal language modeling, and dialect natural language processing for Moroccan Darija.
数据集概述:daa-pairs
链接: https://huggingface.co/datasets/OiQ/daa-pairs
许可: Apache-2.0
语言: 阿拉伯语 (ar), 法语 (fr) (摩洛哥达里贾语)
数据规模: 100K < n < 1M (总计 80,164 个片段)
描述
这是一个随机化的摩洛哥达里贾语(Moroccan Darija)短语对数据集。每条短语包含三种文字变体:阿拉伯字母(Arabic)、拉丁字母(Arabizi)和混合文字(Mixte)。数据集是生成输出的后处理版本,每个来源的片段顺序已被随机化,以防止模型在训练时依赖位置或顺序模式。
数据模式
| 列名 | 描述 |
|---|---|
video_id |
来源YouTube视频ID(文章类为空) |
article_id |
来源文章ID(视频类为空) |
arabic |
阿拉伯字母书写的短语(外来词转写) |
arabizi |
同一短语的摩洛哥阿拉伯语/拉丁字母写法 |
mixte |
自然语码混合模式:阿拉伯字母 + 外来词使用拉丁字母 |
统计
- 总片段数: 80,164
- 唯一来源数: 9,176(视频 + 文章)
生成流程
- 源数据收集: 加载并统一两个上游数据集
OiQ/MoR-ytb.small—— 摩洛哥YouTube视频转录(达里贾语/混合语)OiQ/goud-moroccan-news—— 摩洛哥新闻文章(阿拉伯语/达里贾语)
- 基于LLM的短语生成: 使用ADK LlmAgent(通过OpenRouter调用Google Gemma 4)处理每个源文本。该代理被提示执行以下操作:
- 改写而非转录 —— 必须创造新的自然句子
- 使用地道的达里贾语语法(而非标准阿拉伯语)
- 自然的语码混合(阿拉伯语、法语、英语、西班牙语之间)
- 每条短语生成三种文字变体
- 每个源生成5-20个独立的达里贾语短语。
- 后处理: 通过脚本
flatten_csv.py进行- 扁平化: 将嵌套的JSON列表展开,每行一个短语。
- 随机化: 在每个来源(
video_id+article_id)内部,打乱片段顺序以消除生成过程中的顺序/位置偏差。 - 发布: 将最终随机化的扁平数据集推送到HuggingFace Hub。




