File size: 2,111 Bytes
d48b542
 
 
 
42faeea
 
 
 
d48b542
42faeea
d48b542
 
c1ee65f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d48b542
 
 
 
c1ee65f
d48b542
c1ee65f
d48b542
c1ee65f
d48b542
c1ee65f
d48b542
c1ee65f
 
 
 
 
 
d48b542
c1ee65f
d48b542
c1ee65f
d48b542
c1ee65f
 
d48b542
 
c1ee65f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
license: cc-by-4.0
task_categories:
- text-classification
language:
- zh
tags:
- art
size_categories:
- 10K<n<100K
dataset_info:
  features:
    - name: text
      dtype: string
    - name: title
      dtype: string
    - name: theme_labels
      sequence: string
    - name: emotion_labels
      sequence: string
  splits:
    - name: train
      num_bytes: 1761649
      num_examples: 10071
    - name: test
      num_bytes: 1238066
      num_examples: 7032
  dataset_size: 2999715
config_name: ccpd
version: 1.0.0
---

# CCPD - 古典中文诗歌多标签分类数据集

## 数据集描述

CCPD (Classical Chinese Poetry Dataset) 是一个包含多标签标注的古典中文诗歌数据集,专门用于诗歌主题和情感的多标签分类研究。

## 数据集详情

### 基本信息
- **诗歌数量**: 17,103 首
- **数据划分**: 
  - 训练集: 60% (10,262 首)
  - 测试集: 40% (6,841 首)
- **划分方法**: 使用多标签分层抽样,确保训练集和测试集的标签分布一致

### 数据格式说明

数据格式如下:

```python
{
  "text": "诗歌正文",
  "title": "诗歌标题",
  "theme_labels": ["主题1", "主题2"],  # 主题标签列表
  "emotion_labels": ["情感1", "情感2"]  # 情感标签列表
}
```

### 标签统计

**主题标签**: 10个类别
- 思乡、怀人、田园、战争、山水、怀古、闺怨、悼亡、咏物、送别等

**情感标签**: 13个类别
- 想家、哀伤、愁绪、孤独、失意、思念、流泪、恐惧、怨恨、喜悦等

## 使用示例

### 加载数据集

```python
from datasets import load_dataset

dataset = load_dataset("PoetryMTEB/CCPD")
print(f"训练集大小: {len(dataset['train'])}")
print(f"测试集大小: {len(dataset['test'])}")
print(dataset['train'][0])
```

## 任务应用

本数据集适用于以下NLP任务:

1. **多标签文本分类**
2. **诗歌主题分析**
3. **情感分析** 
4. **古典文学研究**
5. **跨任务迁移学习**

## 引用信息

如果您使用本数据集,请引用相关来源。

## 免责声明

本数据集仅用于学术研究目的。