File size: 2,635 Bytes
9b278ed
81a0548
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9b278ed
81a0548
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
100
101
102
103
104
105
---

dataset_info:
  features:
    - name: id
      dtype: string
    - name: meter_id
      dtype: int64
    - name: meter_name
      dtype: string
    - name: verse
      dtype: string
    - name: verse_part1
      dtype: string
    - name: verse_part2
      dtype: string
  splits:
    - name: train
      num_bytes: 6949029
      num_examples: 47124
    - name: test
      num_bytes: 1255648
      num_examples: 8316
  download_size: 6429814
  dataset_size: 8204677
configs:
  - config_name: default
    data_files:
      - split: train
        path: train-*.parquet
      - split: test
        path: test-*.parquet
---


# Arabic Poetry Meter Classification

This dataset is for Arabic poetry meter classification. The dataset contains Arabic verses and their corresponding meter classes.

## Dataset Information

The dataset is divided into training and testing sets:
- **Training set**: More than 47,124 verses
- **Test set**: More than 8,316 verses
- **Total**: 55,440 verses

## Meter Classes

The dataset includes 14 meter classes (0-13):

| Meter ID | Meter Name |
|----------|-----------|
| 0 | Saree |
| 1 | Kamel |
| 2 | Mutakareb |
| 3 | Mutadarak |
| 4 | Munsareh |
| 5 | Madeed |
| 6 | Mujtath |
| 7 | Ramal |
| 8 | Baseet |
| 9 | Khafeef |
| 10 | Taweel |
| 11 | Wafer |
| 12 | Hazaj |
| 13 | Rajaz |

## Data Format

The dataset is stored in Parquet format with the following fields:

- `id`: Unique identifier
- `meter_id`: Meter class ID (0-13)
- `meter_name`: Meter class name
- `verse`: Full verse text (with '#' separator removed)
- `verse_part1`: First part of the verse (before '#')
- `verse_part2`: Second part of the verse (after '#')

## Original Data Format

In the original files (train.txt and test.txt), each row contains:
- Meter ID and verse separated by a space
- Verse consists of two parts separated by '#'

Example: `1 يا ضيفَ طيفٍ ما هَداهُ لمَضجَعي # إلا لهيبٌ في الحشى يتوقّدُ`

## Citation

If you use this dataset, please cite:

```

@article{ALSHAIBANI2020106497,

  title = {MetRec: A dataset for meter classification of arabic poetry},

  journal = {Data in Brief},

  volume = {33},

  pages = {106497},

  year = {2020},

  doi = {https://doi.org/10.1016/j.dib.2020.106497},

  author = {Maged S. Al-shaibani and Zaid Alyafeai and Irfan Ahmad},

  keywords = {Arabic, meter, poetry, classification, prosody}

}

```

## Source

The original dataset was collected from the Aldiwan website. For more information, please refer to the original paper.