1602353775wzj commited on
Commit
300aeac
·
verified ·
1 Parent(s): 5803df3

Add English Poetry Topic Clustering Benchmark - English Poetry Topic Clustering Dataset

Browse files
README.md CHANGED
@@ -1,3 +1,92 @@
1
  ---
2
- license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ configs:
3
+ - config_name: default
4
+ data_files:
5
+ - path: train-00000-of-00001.parquet
6
+ split: train
7
+ - path: val-00000-of-00001.parquet
8
+ split: val
9
+ - path: test-00000-of-00001.parquet
10
+ split: test
11
+ dataset_info:
12
+ config_name: default
13
+ dataset_size: 10208409
14
+ download_size: 10208409
15
+ features:
16
+ - dtype: string
17
+ name: id
18
+ - dtype: string
19
+ name: author
20
+ - dtype: string
21
+ name: title
22
+ - dtype: string
23
+ name: topic
24
+ - dtype: string
25
+ name: text
26
+ - dtype: string
27
+ name: topic_code
28
+ splits:
29
+ - name: train
30
+ num_bytes: 6060818
31
+ num_examples: 8574
32
+ - name: val
33
+ num_bytes: 2150537
34
+ num_examples: 2825
35
+ - name: test
36
+ num_bytes: 1997054
37
+ num_examples: 2935
38
  ---
39
+
40
+ # English Poetry Topic Clustering Benchmark
41
+
42
+ ## Dataset Description
43
+
44
+ English poetry topic clustering benchmark for evaluating embedding models' performance on unsupervised poetry topic clustering tasks. Each record contains a poem and its topic clustering label.
45
+
46
+ This dataset is derived from [AJMC2002/poems](https://huggingface.co/datasets/AJMC2002/poems) and split into train/validation/test sets with a 6:2:2 ratio while maintaining topic distribution.
47
+
48
+ ## Dataset Statistics
49
+
50
+ | Metric | Value |
51
+ |--------|-------|
52
+ | **Total Poems** | 14,334 poems |
53
+ | **Train Set** | 8,574 poems |
54
+ | **Validation Set** | 2,825 poems |
55
+ | **Test Set** | 2,935 poems |
56
+ | **Total File Size** | 9.7 MB |
57
+
58
+ ## Data Fields
59
+
60
+ - `id`: Unique poem identifier
61
+ - `author`: Poem author
62
+ - `title`: Poem title
63
+ - `text`: Poem body/content
64
+ - `topic`: Original topic label
65
+ - `topic_code`: Topic clustering label (used for clustering evaluation)
66
+
67
+ ## Dataset Splits
68
+
69
+ The dataset is split into three sets:
70
+ - **train**: Training set (60% of data)
71
+ - **val**: Validation set (20% of data)
72
+ - **test**: Test set (20% of data)
73
+
74
+ The split maintains topic distribution across all sets.
75
+
76
+ ## Usage
77
+
78
+ ```python
79
+ from datasets import load_dataset
80
+
81
+ dataset = load_dataset("PoetryMTEB/EnglishPoetryTopicClustering")
82
+
83
+ # Access different splits
84
+ train_data = dataset['train']
85
+ val_data = dataset['val']
86
+ test_data = dataset['test']
87
+ ```
88
+
89
+ ## Citation
90
+
91
+ If you use this dataset, please cite the original source:
92
+ - Original dataset: AJMC2002/poems
dataset_infos.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "default": {
3
+ "description": "English Poetry Topic Clustering Benchmark - default config",
4
+ "citation": "",
5
+ "homepage": "",
6
+ "license": "apache-2.0",
7
+ "features": {
8
+ "id": {
9
+ "dtype": "string",
10
+ "_type": "Value"
11
+ },
12
+ "author": {
13
+ "dtype": "string",
14
+ "_type": "Value"
15
+ },
16
+ "title": {
17
+ "dtype": "string",
18
+ "_type": "Value"
19
+ },
20
+ "topic": {
21
+ "dtype": "string",
22
+ "_type": "Value"
23
+ },
24
+ "text": {
25
+ "dtype": "string",
26
+ "_type": "Value"
27
+ },
28
+ "topic_code": {
29
+ "dtype": "string",
30
+ "_type": "Value"
31
+ }
32
+ },
33
+ "splits": {
34
+ "train": {
35
+ "name": "train",
36
+ "num_bytes": 6060818,
37
+ "num_examples": 8574,
38
+ "dataset_name": "EnglishPoetryTopicClustering"
39
+ },
40
+ "val": {
41
+ "name": "val",
42
+ "num_bytes": 2150537,
43
+ "num_examples": 2825,
44
+ "dataset_name": "EnglishPoetryTopicClustering"
45
+ },
46
+ "test": {
47
+ "name": "test",
48
+ "num_bytes": 1997054,
49
+ "num_examples": 2935,
50
+ "dataset_name": "EnglishPoetryTopicClustering"
51
+ }
52
+ },
53
+ "download_size": 10208409,
54
+ "dataset_size": 10208409,
55
+ "size_in_bytes": 10208409
56
+ }
57
+ }
test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:128fe13adafb7ff98f11140ce4c1e2c29ee3a4743ba70e6b014368772fcdd1b9
3
+ size 1997054
train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29da56eca2471b992d49ed961797832ae0895cfcf4b3074e7567ba5f7fb71ec6
3
+ size 6060818
val-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a1e669cc6088f947b20ea31df85ba9ec95fcdf0c4dd7489c1e53f8865fe9f35
3
+ size 2150537