swedish-cefr-text-complexity
收藏资源简介:
瑞典语CEFR文本复杂度数据集包含瑞典语文本示例,标注了从A1到C2的近似CEFR阅读水平。该数据集最初是为一个关于使用嵌入训练文本分类器的信息检索任务而创建的。数据集适用于瑞典语文本复杂度分类任务,即给定一个简短的瑞典语句子或段落,预测其最接近的阅读水平。数据集包含两个主要文件:一个包含600个示例的训练集和一个包含120个示例的独立测试集。每个示例包含两列:text(瑞典语文本)和label(CEFR阅读水平,包括A1、A2、B1、B2、C1、C2)。训练集中每个标签有100个示例,测试集中每个标签有20个示例。标签的近似解释从A1(非常简单的日常瑞典语)到C2(高度复杂、正式、技术性或专业瑞典语)不等。数据集适用于小规模的嵌入实验、可读性分类和CEFR风格的语言水平预测。
The Swedish CEFR Text Complexity Dataset contains Swedish text examples annotated with approximate CEFR reading proficiency levels ranging from A1 to C2. This dataset was originally created for an information retrieval task involving embedding-trained text classifiers. It is applicable to Swedish text complexity classification tasks, which require predicting the closest matching reading proficiency level given a short Swedish sentence or paragraph. The dataset comprises two primary files: a training set with 600 examples and an independent test set with 120 examples. Each example includes two columns: `text` (Swedish language text) and `label` (CEFR reading proficiency levels, including A1, A2, B1, B2, C1, and C2). Each label corresponds to 100 examples in the training set and 20 examples in the test set. The approximate interpretations of the labels range from A1 (very simple, everyday Swedish) to C2 (highly complex, formal, technical, or professional Swedish). This dataset is suitable for small-scale embedding experiments, readability classification, and CEFR-style language proficiency prediction.
数据集概述:Swedish CEFR Text Complexity
该数据集包含标注了CEFR阅读水平(从A1到C2)的瑞典语文本示例,适用于文本分类任务,特别是瑞典语文本复杂性分类。
数据集信息
- 许可证:CC-BY-4.0
- 语言:瑞典语(sv)
- 任务类别:文本分类
- 标签:CEFR阅读水平(A1、A2、B1、B2、C1、C2)
- A1:非常简单的日常瑞典语
- A2:简单的熟悉瑞典语,短语稍长
- B1:清晰的通用瑞典语
- B2:更详细或抽象的瑞典语
- C1:高级瑞典语,结构复杂或措辞专业
- C2:高度复杂、正式、技术性或专业性的瑞典语
文件结构
数据集包含三个TSV文件,每行有两列:text(瑞典语文本)和label(CEFR水平)。
| 文件 | 描述 |
|---|---|
swedish_cefr_dataset.tsv |
原始600条示例数据集 |
swedish_cefr_train.tsv |
600条训练集 |
swedish_cefr_test.tsv |
120条独立测试集 |
数据划分
- 训练集:600条示例,每个CEFR标签100条
- 测试集:120条示例,每个CEFR标签20条
分类器基准测试
基于nicher92/saga-embed_v1嵌入和scikit-learn分类器,在测试集上的性能如下:
| 分类器 | 准确率 | 宏平均F1 |
|---|---|---|
| 线性SVM | 0.867 | 0.866 |
| 逻辑回归 | 0.850 | 0.848 |
| 随机森林 | 0.808 | 0.805 |
| KNN | 0.708 | 0.704 |
线性SVM因准确率和宏平均F1最高被选为最终分类器。
加载示例
python import pandas as pd
train = pd.read_csv( "hf://datasets/kvest/swedish-cefr-text-complexity/swedish_cefr_train.tsv", sep=" ", ) test = pd.read_csv( "hf://datasets/kvest/swedish-cefr-text-complexity/swedish_cefr_test.tsv", sep=" ", )
print(train.head()) print(test["label"].value_counts().sort_index())
相关资源
- Demo Space:https://huggingface.co/spaces/kvest/swedish-cefr-text-classifier
- 训练模型:https://huggingface.co/kvest/swedish-cefr-linear-svm
- GitHub仓库:https://github.com/kvest42/Swedish-CEFR-Classifier
局限性
- 标签为近似值,适用于教育性分类器训练,非官方CEFR评估。
- 短文本可能存在歧义,CEFR阅读水平受词汇、语法、话题熟悉度和语篇结构影响。





