1602353775wzj commited on
Commit
fa224fb
·
verified ·
1 Parent(s): bf9ecef

Add FSPC V1.0 Chinese classical poetry sentiment dataset

Browse files
.gitattributes ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ test-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text
2
+ train-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_info:
3
+ features:
4
+ - name: id
5
+ dtype: string
6
+ - name: poem_id
7
+ dtype: int64
8
+ - name: poet
9
+ dtype: string
10
+ - name: dynasty
11
+ dtype: string
12
+ - name: title
13
+ dtype: string
14
+ - name: text
15
+ dtype: string
16
+ - name: setiments
17
+ dtype: string
18
+ splits:
19
+ - name: train
20
+ num_bytes: 474283
21
+ num_examples: 4000
22
+ - name: test
23
+ num_bytes: 127061
24
+ num_examples: 1000
25
+ download_size: 1865728
26
+ dataset_size: 601344
27
+ configs:
28
+ - config_name: default
29
+ data_files:
30
+ - split: train
31
+ path: train-*.parquet
32
+ - split: test
33
+ path: test-*.parquet
34
+ ---
35
+
36
+ # FSPC - Fine-grained Sentimental Poetry Corpus
37
+
38
+ FSPC is a manually-labelled Fine-grained Sentiment Poetry Corpus. Each poem and each line is annotated into 5 classes, namely negative, implicit negative, neutral, implicit positive and positive.
39
+
40
+ ## Dataset Information
41
+
42
+ - **Version**: V1.0
43
+ - **Number of poems**: 5,000
44
+ - **Sentiment Classes**:
45
+ - 1: negative
46
+ - 2: implicit negative
47
+ - 3: neutral
48
+ - 4: implicit positive
49
+ - 5: positive
50
+
51
+ ## Data Format
52
+
53
+ The dataset is stored in Parquet format with the following fields:
54
+
55
+ - `id`: Unique identifier (poem_id as string)
56
+ - `poem_id`: Poem sequence number
57
+ - `poet`: Poet name
58
+ - `dynasty`: Dynasty name (e.g., "唐", "宋")
59
+ - `title`: Poem title
60
+ - `text`: Full poem text with lines separated by newline characters (original "|" replaced with "
61
+ ")
62
+ - `setiments`: JSON string containing sentiment labels in original format: `{"holistic": "1", "line1": "1", "line2": "1", "line3": "2", "line4": "2"}`
63
+
64
+ The dataset is split into train (80%) and test (20%) sets with stratified sampling based on holistic sentiment to ensure balanced distribution.
65
+
66
+ ## Citation
67
+
68
+ If you use this corpus, please cite the following paper:
69
+
70
+ ```
71
+ @inproceedings{chensentiment:19,
72
+ author = {Huimin Chen and Xiaoyuan Yi and Maosong Sun and Cheng Yang and Wenhao Li and Zhipeng Guo},
73
+ title = {Sentiment-Controllable Chinese Poetry Generation},
74
+ year = "2019",
75
+ booktitle = {Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence},
76
+ address = {Macao, China}
77
+ }
78
+ ```
79
+
80
+ ## Original Dataset
81
+
82
+ The original dataset can be found in JSON format where each line is a poem with the following structure:
83
+
84
+ ```json
85
+ {
86
+ "poet": "韦庄",
87
+ "poem": "自有春愁正断魂|不堪芳草思王孙|落花寂寂黄昏雨|深院无人独倚门",
88
+ "dynasty": "唐",
89
+ "setiments": {"holistic": "1", "line1": "1", "line2": "1", "line3": "2", "line4": "2"},
90
+ "title": "春愁"
91
+ }
92
+ ```
93
+
94
+ Lines and sentiments in a poem are split by "|". The sentiments dict contains the holistic sentiment of whole poem, sentiment of the first line, ..., sentiment of the fourth line.
dataset_infos.yaml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ configs:
2
+ - config_name: default
3
+ data_files:
4
+ - path: train-*.parquet
5
+ split: train
6
+ - path: test-*.parquet
7
+ split: test
8
+ dataset_info:
9
+ configs:
10
+ - config_name: default
11
+ features:
12
+ - name: id
13
+ dtype: string
14
+ - name: poem_id
15
+ dtype: int64
16
+ - name: poet
17
+ dtype: string
18
+ - name: dynasty
19
+ dtype: string
20
+ - name: title
21
+ dtype: string
22
+ - name: text
23
+ dtype: string
24
+ - name: setiments
25
+ dtype: string
26
+ splits:
27
+ - name: train
28
+ num_bytes: 474283
29
+ num_examples: 4000
30
+ - name: test
31
+ num_bytes: 127061
32
+ num_examples: 1000
33
+ download_size: 1865728
34
+ dataset_size: 601344
test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bfcf70ab7099826752c805a8e1571e297ace1399b2908e5a3b17fa6381456891
3
+ size 127061
train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e397202d2b7b50d41447db39bc82fd420810a6bbfdf2ca18c81de555c1c4e5ef
3
+ size 474283