File size: 2,704 Bytes
ee516df
 
 
 
 
 
 
 
38e19b1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5c27a0c
 
 
 
 
 
 
 
38e19b1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: apache-2.0
task_categories:
- text-generation
language:
- mg
size_categories:
- 10K<n<100K
---
# Collection Tononkalo Malagasy

## Dataset Description

This dataset is a collection of Malagasy poems (*Tononkalo*) scraped from [Vetso Serasera](https://vetso.serasera.org/vetso). It focuses on creative writing, rhymes, and artistic expression in the Malagasy language.

**Important Note:** This dataset has been rigorously filtered.
1.  **Language Filtering:** Poems written primarily in French or English have been removed to ensure a high-quality Malagasy corpus.
2.  **Cleaning:** Metadata, dates, author signatures inside the text, and website headers/footers have been stripped to leave only the raw poetic content.

- **Curated by:** Lo-Renz-O
- **Language:** Malagasy (mg)
- **Source:** Vetso Serasera
- **License:** User-generated content (Rights belong to original authors). Used for research/educational purposes.

## Dataset Structure

The dataset is formatted in JSONL.

### Data Fields

- `url` (string): The URL where the poem was found.
- `title` (string): The title of the poem.
- `author` (string): The name of the poet.
- `content` (string): The body of the poem, preserving line breaks (`\n`) for structure.

## Use Cases

This dataset captures the **creative, emotional, and metaphorical** aspects of the Malagasy language. It contains vocabulary and sentence structures rarely found in formal news or wikipedia data.

*   **Creative Text Generation:** Training LLMs to write poetry, song lyrics, or creative prose in Malagasy, adhering to rhyme schemes and rhythmic patterns.
*   **Vocabulary Expansion:** Poetry often utilizes deep Malagasy vocabulary (*teny gasy lalina*), metaphors, and proverbs (*ohabolana*), helping models understand context beyond literal meanings.
*   **Cultural Preservation:** Preserving the digital heritage of Malagasy contemporary and traditional poetry for future linguistic analysis.

### Example

```json
{
  "url": "https://vetso.serasera.org/tononkalo/author/title",
  "title": "Embona",
  "author": "Rado",
  "content": "Raha mbola misy embona\nny lasa tsy fanary\nny fo no aoka hiteny\n..."
}
```
### Filtering Logic
To ensure quality for LLM training:
Login Pages Removed: Redirects to login pages were filtered out.
Signatures Removed: Lines at the end of poems containing the author's name or dates (e.g., "12/12/2025") were programmatically removed.
Non-Malagasy Removed: A heuristic based on stop-words was used to exclude non-Malagasy texts.

### How to Use

```python
from datasets import load_dataset

dataset = load_dataset("Lo-Renz-O/Collection-Tononkalo-Malagasy")

# Print a poem
print(dataset['train'][0]['content'])
```