arabic-triplets-fineweb2-msa
收藏资源简介:
该数据集是一个用于训练和评估信息检索或文本排序模型的数据集,采用对比学习或三元组损失训练中常用的“查询-正例-负例”结构。每个数据样本包含一个查询文本(query)、一个相关正例文本(positive),以及多个负例文本。负例进一步细分为困难负例(hard_negative,通常是与查询相关但相关性较低的文本)和软负例(soft_negative,可能是随机或不相关的文本),每类最多提供4个示例。数据集还包含一个source_idx字段,可能用于标识数据来源或原始索引。数据规模方面,训练集包含3,999个样本,总大小约为28.5MB。该数据集适用于训练密集检索模型、句子嵌入模型或任何需要学习查询与文档间相关性的任务。
This dataset is designed for training and evaluating information retrieval or text ranking models, adopting the widely-used "query-positive-negative" structure in contrastive learning or triplet loss training. Each data sample contains a query text, a relevant positive text, and multiple negative examples. The negative examples are further divided into hard negatives (hard_negative, typically texts that are relevant to the query but with lower relevance) and soft negatives (soft_negative, which may be randomly selected or irrelevant texts), with up to 4 examples provided for each category. The dataset also includes a source_idx field, which can be used to identify the data source or original index. In terms of data scale, the training set contains 3,999 samples with a total size of approximately 28.5 MB. This dataset is suitable for training dense retrieval models, sentence embedding models, or any tasks that require learning the relevance between queries and documents.
数据集概述:arabic-triplets-fineweb2-msa
该数据集用于阿拉伯语现代标准语(MSA)的句子级语义相似度学习与检索任务,以三元组格式组织。
数据集地址:https://huggingface.co/datasets/Abdelkareem/arabic-triplets-fineweb2-msa
数据集特征(Features)
每条数据包含以下字段:
| 字段名 | 类型 | 说明 |
|---|---|---|
source_idx |
int64 | 原始来源索引 |
query |
string | 查询句子(锚点) |
positive |
string | 与查询语义相似的正例句子 |
hard_negative_0 至 hard_negative_3 |
string | 4个困难负例(语义相近但不匹配的句子) |
soft_negative_0 至 soft_negative_3 |
string | 4个简单负例(语义不相关的句子) |
结构特点:每个样本包含1个查询、1个正例和8个负例(4个困难+4个简单),适合用于对比学习或基于三元组的检索模型训练。
数据集划分(Splits)
| 划分 | 样本数 | 字节数 |
|---|---|---|
| train | 7,998 | 57.7 MB |
- 该数据集仅包含训练集,无验证集或测试集。
- 总下载大小:29.1 MB(压缩后)
- 数据集总大小:61.2 MB(解压后)
配置与文件结构
- 默认配置名:
default - 数据文件路径:
data/train-*(采用通配符表示多个文件分片,适用于流式加载)




