1602353775wzj commited on
Commit
76114e0
·
verified ·
1 Parent(s): f36c6c7

Add Classical Chinese Poetry Theme Classification dataset

Browse files
README.md CHANGED
@@ -1,3 +1,70 @@
1
  ---
2
- license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ dataset_info:
3
+ features:
4
+ - name: id
5
+ dtype: string
6
+ - name: text
7
+ dtype: string
8
+ - name: label
9
+ dtype: int64
10
+ splits:
11
+ - name: train
12
+ num_bytes: 652315
13
+ num_examples: 2624
14
+ - name: test
15
+ num_bytes: 66198
16
+ num_examples: 292
17
+ dataset_size: 718513
18
+ configs:
19
+ - config_name: default
20
+ data_files:
21
+ - split: train
22
+ path: train-*.parquet
23
+ - split: test
24
+ path: test-*.parquet
25
  ---
26
+
27
+ # Classical Chinese Poetry Theme Classification
28
+
29
+ This dataset contains classical Chinese poetry with theme classification. Each poem is classified into one of 7 thematic categories.
30
+
31
+ ## Dataset Information
32
+
33
+ The dataset is split into train and test sets.
34
+
35
+ - **Train set**: 2624 examples
36
+ - **Test set**: 292 examples
37
+ - **Total**: 2916 examples
38
+
39
+ ## Data Format
40
+
41
+ The dataset is stored in Parquet format with the following fields:
42
+
43
+ - `id`: Unique identifier
44
+ - `text`: Poem text
45
+ - `label`: Theme label (integer from 1 to 7)
46
+
47
+ ## Theme Labels
48
+
49
+ | Class | Thematic Category | Description | Number (Proportion) |
50
+ |-------|-------------------|-------------|---------------------|
51
+ | 1 | 爱情婚姻 (Love and Marriage) | This type of poetry typically expresses the joys, sorrows, and ups and downs of love, marriage, and family life. | 312 (10.7%) |
52
+ | 2 | 交友送别 (Friendship and Farewell) | The works usually contain praise for friendship, sorrow for separation, and anticipation for a reunion. | 695 (23.8%) |
53
+ | 3 | 羁旅思乡 (Journey and Homesickness) | This type of poetry expresses longing and attachment to one's hometown, homeland, and family, as well as the loneliness and helplessness of wandering and leaving one's hometown. | 353 (12.1%) |
54
+ | 4 | 边塞战争 (Frontier and War) | This type of poetry reflects the loyalty, strength, courage, and sacrifice of soldiers in border wars. | 230 (7.9%) |
55
+ | 5 | 山水田园 (Landscape and Countryside) | This type of poetry shows a love and longing for natural scenery, usually with beautiful imagery and rich emotional colors. | 368 (12.6%) |
56
+ | 6 | 咏史怀古 (Historical allusions and Nostalgia) | This type of poetry expresses admiration for history, love for traditional culture, and contemplation of the changes in the times through the depiction and expression of historical events, famous figures, and cultural relics. | 387 (13.3%) |
57
+ | 7 | 托物言志 (Expressing emotions through concrete objects) | This type of poetry expresses thoughts and emotions related to society, life, morality, and other aspects through the portrayal and symbolism of objects. | 573 (19.6%) |
58
+
59
+
60
+ ## Usage
61
+
62
+ ```python
63
+ from datasets import load_dataset
64
+
65
+ dataset = load_dataset("PoetryMTEB/ClassicalChinesePoetryThemeClassification")
66
+
67
+ # Access train and test splits
68
+ train_data = dataset['train']
69
+ test_data = dataset['test']
70
+ ```
test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45b84d58262b50c906e660e963df127e5673a539e84f15ef92720da23100dcfb
3
+ size 66198
train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:333170332f1fd289aac1f046e3c7488f7bb7e86b1d6f79bc3a2f684681ffd8f9
3
+ size 652315