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

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +91 -70
README.md CHANGED
@@ -1,70 +1,91 @@
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
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ```
71
+ ```
72
+ @article{10.1145/3685679,
73
+ author = {Hou, Jingrui and Zhang, Shitou},
74
+ title = {Exploring Thematic Diversity in Classical Chinese Poetry: A Novel Dataset and a BERT-enhanced Ensemble Learning Approach},
75
+ year = {2024},
76
+ issue_date = {December 2024},
77
+ publisher = {Association for Computing Machinery},
78
+ address = {New York, NY, USA},
79
+ volume = {17},
80
+ number = {4},
81
+ issn = {1556-4673},
82
+ url = {https://doi.org/10.1145/3685679},
83
+ doi = {10.1145/3685679},
84
+ abstract = {Classical Chinese poetry, as an essential aspect of cultural heritage, exhibits rich theme diversity often overlooked in natural language processing research. To address this gap, we aim to explore the classification of thematic categories within this literary domain. We curate a dataset of 2,918 annotated poems spanning 7 common themes and propose a BERT-based ensemble learning approach for effective classification. Although this method integrates existing models, it achieves an accuracy and F1 score of over 72\% in the 7-class task, surpassing established baselines, and providing a baseline for future research. The experimental findings reveal the effectiveness of ensemble strategies in improving individual base model performance and highlight the potential of the MLP-based ensemble technique. The study contributes to a deeper understanding of thematic categories and textual features in classical Chinese poetry and offers an automated classification system for classical Chinese poems.},
85
+ journal = {J. Comput. Cult. Herit.},
86
+ month = dec,
87
+ articleno = {60},
88
+ numpages = {19},
89
+ keywords = {Thematic Classification, Classical Chinese Poetry, Ensemble Learning, Pre-trained Language Model}
90
+ }
91
+ ```