Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
json
Size:
1K - 10K
Tags:
genre
web genre
text genre
automatic genre identification
manually-annotated dataset
cross-lingual classification
License:
TajaKuzman
commited on
Commit
•
9a09135
1
Parent(s):
d803364
Upload 4 files
Browse files- .gitattributes +1 -0
- README.md +141 -3
- X-GENRE-dev.jsonl +0 -0
- X-GENRE-test.jsonl +0 -0
- X-GENRE-train.jsonl +3 -0
.gitattributes
CHANGED
@@ -56,3 +56,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
56 |
# Video files - compressed
|
57 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
58 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
56 |
# Video files - compressed
|
57 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
58 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
59 |
+
X-GENRE-train.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,3 +1,141 @@
|
|
1 |
-
---
|
2 |
-
license: cc-by-sa-4.0
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-sa-4.0
|
3 |
+
task_categories:
|
4 |
+
- text-classification
|
5 |
+
language:
|
6 |
+
- sl
|
7 |
+
- en
|
8 |
+
tags:
|
9 |
+
- genre
|
10 |
+
- web genre
|
11 |
+
- text genre
|
12 |
+
- automatic genre identification
|
13 |
+
- manually-annotated dataset
|
14 |
+
- cross-lingual classification
|
15 |
+
pretty_name: X-GENRE
|
16 |
+
size_categories:
|
17 |
+
- 1K<n<10K
|
18 |
+
configs:
|
19 |
+
- config_name: train
|
20 |
+
data_files: X-GENRE-train.jsonl
|
21 |
+
- config_name: test
|
22 |
+
data_files: X-GENRE-test.jsonl
|
23 |
+
- config_name: dev
|
24 |
+
data_files: X-GENRE-dev.jsonl
|
25 |
+
---
|
26 |
+
# Multilingual manually-annotated X-GENRE genre dataset
|
27 |
+
|
28 |
+
Multilingual (English-Slovenian) manually-annotated X-GENRE genre dataset is to be used for automatic genre identification, namely,
|
29 |
+
for training genre classifiers (on the training split) and evaluation in the in-dataset scenario (on the test split).
|
30 |
+
|
31 |
+
The dataset was presented in the paper "[Automatic Genre Identification for Robust Enrichment of Massive Text Collections:
|
32 |
+
Investigation of Classification Methods in the Era of Large Language Models](https://www.mdpi.com/2504-4990/5/3/59)" (Kuzman et al., 2023).
|
33 |
+
|
34 |
+
To download the dataset as a HuggingFace dataset:
|
35 |
+
```
|
36 |
+
from datasets import load_dataset
|
37 |
+
import pandas as pd
|
38 |
+
|
39 |
+
train = load_dataset("TajaKuzman/X-GENRE-multilingual-text-genre-dataset", "train")
|
40 |
+
test = load_dataset("TajaKuzman/X-GENRE-multilingual-text-genre-dataset", "test")
|
41 |
+
dev = load_dataset("TajaKuzman/X-GENRE-multilingual-text-genre-dataset", "dev")
|
42 |
+
|
43 |
+
# To open as Pandas DataFrame:
|
44 |
+
train_df = pd.DataFrame(train["train"])
|
45 |
+
dev_df = pd.DataFrame(dev["train"])
|
46 |
+
test_df = pd.DataFrame(test["train"])
|
47 |
+
|
48 |
+
```
|
49 |
+
|
50 |
+
## Dataset Description
|
51 |
+
|
52 |
+
- **Repository: coming soon**
|
53 |
+
- **Paper: Kuzman, T.; Mozetič, I.; Ljubešić, N. Automatic Genre Identification for Robust Enrichment of Massive Text Collections: Investigation of Classification Methods in the Era of Large Language Models. Mach. Learn. Knowl. Extr. 2023, 5, 1149-1175. https://doi.org/10.3390/make5030059**
|
54 |
+
|
55 |
+
### Dataset Summary
|
56 |
+
|
57 |
+
The X-GENRE dataset consists of almost 3,000 texts and 3.3 million words in English and Slovenian language.
|
58 |
+
It is split into train, test and dev split.
|
59 |
+
The dataset was used to develop the
|
60 |
+
[XLM-RoBERTa-based multilingual genre classifier X-GENRE, available on HuggingFace](https://huggingface.co/classla/xlm-roberta-base-multilingual-text-genre-classifier).
|
61 |
+
|
62 |
+
Dataset sizes:
|
63 |
+
|
64 |
+
| split | # words | # texts |
|
65 |
+
|:---|---:|---:|
|
66 |
+
| X-GENRE-train | 1,940,317 | 1,772 |
|
67 |
+
| X-GENRE-test | 583,595 | 592 |
|
68 |
+
| X-GENRE-dev | 798,025 | 592 |
|
69 |
+
| **Total** | **3,321,937** | **2,956** |
|
70 |
+
|
71 |
+
The X-GENRE dataset was constructed by merging three manually-annotated datasets by mapping a joint X-GENRE genre schema to the original schemata:
|
72 |
+
- the Slovenian [GINCO](https://www.clarin.si/repository/xmlui/handle/11356/1467) dataset ([Kuzman et al., 2022](https://aclanthology.org/2022.lrec-1.170.pdf)),
|
73 |
+
- the English [CORE](https://github.com/TurkuNLP/CORE-corpus) dataset ([Laippala et al., 2023](https://link.springer.com/article/10.1007/s10579-022-09624-1))
|
74 |
+
- and the English [FTD](https://github.com/ssharoff/genre-keras) dataset ([Sharoff, 2018](https://eprints.whiterose.ac.uk/102914/1/2018-ftd.pdf)).
|
75 |
+
|
76 |
+
|
77 |
+
Distribution of the original datasets in the X-GENRE dataset (in number of texts):
|
78 |
+
|
79 |
+
| split | FTD | CORE | GINCO | **Total** |
|
80 |
+
|:---|---:|---:|---:|---:|
|
81 |
+
| X-GENRE-train | 630 | 607 | 535 | 1,772 |
|
82 |
+
| X-GENRE-test | 210 | 203 | 179 | 592 |
|
83 |
+
| X-GENRE-dev | 210 | 203 | 179 | 592 |
|
84 |
+
| **Total** | 1,050 | 1,013 | 893 | 2,956 |
|
85 |
+
|
86 |
+
Distribution of languages in the dataset (in number of texts):
|
87 |
+
|
88 |
+
| split | Slovenian | English | **Total** |
|
89 |
+
|:---|---:|---:|---:|
|
90 |
+
| X-GENRE-train | 535 | 1,237 | 1,772 |
|
91 |
+
| X-GENRE-test | 179 | 413 | 592 |
|
92 |
+
| X-GENRE-dev | 179 | 413 | 592 |
|
93 |
+
| **Total** | 893 | 2,063 | 2,956 |
|
94 |
+
|
95 |
+
### Data Attributes
|
96 |
+
|
97 |
+
The dataset is in JSONL format. It has the following attributes:
|
98 |
+
- text: text instance
|
99 |
+
- labels: genre label
|
100 |
+
- dataset: original manually-annotated genre dataset from which the text was obtained (CORE, GINCO or FTD)
|
101 |
+
- language: language of the text (Slovenian or English)
|
102 |
+
|
103 |
+
### Genre labels
|
104 |
+
|
105 |
+
The dataset uses the "X-GENRE" schema.
|
106 |
+
|
107 |
+
```labels_list=['Other', 'Information/Explanation', 'News', 'Instruction', 'Opinion/Argumentation', 'Forum', 'Prose/Lyrical', 'Legal', 'Promotion']```
|
108 |
+
|
109 |
+
|
110 |
+
Description of labels:
|
111 |
+
|
112 |
+
| Label | Description | Examples |
|
113 |
+
|-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
114 |
+
| Information/Explanation | An objective text that describes or presents an event, a person, a thing, a concept etc. Its main purpose is to inform the reader about something. Common features: objective/factual, explanation/definition of a concept (x is …), enumeration. | research article, encyclopedia article, informational blog, product specification, course materials, general information, job description, manual, horoscope, travel guide, glossaries, historical article, biographical story/history. |
|
115 |
+
| Instruction | An objective text which instructs the readers on how to do something. Common features: multiple steps/actions, chronological order, 1st person plural or 2nd person, modality (must, have to, need to, can, etc.), adverbial clauses of manner (in a way that), of condition (if), of time (after …). | how-to texts, recipes, technical support |
|
116 |
+
| Legal | An objective formal text that contains legal terms and is clearly structured. The name of the text type is often included in the headline (contract, rules, amendment, general terms and conditions, etc.). Common features: objective/factual, legal terms, 3rd person. | small print, software license, proclamation, terms and conditions, contracts, law, copyright notices, university regulation |
|
117 |
+
| News | An objective or subjective text which reports on an event recent at the time of writing or coming in the near future. Common features: adverbs/adverbial clauses of time and/or place (dates, places), many proper nouns, direct or reported speech, past tense. | news report, sports report, travel blog, reportage, police report, announcement |
|
118 |
+
| Opinion/Argumentation | A subjective text in which the authors convey their opinion or narrate their experience. It includes promotion of an ideology and other non-commercial causes. This genre includes a subjective narration of a personal experience as well. Common features: adjectives/adverbs that convey opinion, words that convey (un)certainty (certainly, surely), 1st person, exclamation marks. | review, blog (personal blog, travel blog), editorial, advice, letter to editor, persuasive article or essay, formal speech, pamphlet, political propaganda, columns, political manifesto |
|
119 |
+
| Promotion | A subjective text intended to sell or promote an event, product, or service. It addresses the readers, often trying to convince them to participate in something or buy something. Common features: contains adjectives/adverbs that promote something (high-quality, perfect, amazing), comparative and superlative forms of adjectives and adverbs (the best, the greatest, the cheapest), addressing the reader (usage of 2nd person), exclamation marks. | advertisement, promotion of a product (e-shops), promotion of an accommodation, promotion of company's services, invitation to an event |
|
120 |
+
| Forum | A text in which people discuss a certain topic in form of comments. Common features: multiple authors, informal language, subjective (the writers express their opinions), written in 1st person. | discussion forum, reader/viewer responses, QA forum |
|
121 |
+
| Prose/Lyrical | A literary text that consists of paragraphs or verses. A literary text is deemed to have no other practical purpose than to give pleasure to the reader. Often the author pays attention to the aesthetic appearance of the text. It can be considered as art. | lyrics, poem, prayer, joke, novel, short story |
|
122 |
+
| Other | A text that which does not fall under any of other genre categories. | |
|
123 |
+
|
124 |
+
|
125 |
+
### Citation information
|
126 |
+
|
127 |
+
Please cite the following paper which describes the construction of the dataset in more details:
|
128 |
+
```
|
129 |
+
@article{make5030059,
|
130 |
+
AUTHOR = {Kuzman, Taja and Mozetič, Igor and Ljubešić, Nikola},
|
131 |
+
TITLE = {Automatic Genre Identification for Robust Enrichment of Massive Text Collections: Investigation of Classification Methods in the Era of Large Language Models},
|
132 |
+
JOURNAL = {Machine Learning and Knowledge Extraction},
|
133 |
+
VOLUME = {5},
|
134 |
+
YEAR = {2023},
|
135 |
+
NUMBER = {3},
|
136 |
+
PAGES = {1149--1175},
|
137 |
+
URL = {https://www.mdpi.com/2504-4990/5/3/59},
|
138 |
+
ISSN = {2504-4990},
|
139 |
+
DOI = {10.3390/make5030059}
|
140 |
+
}
|
141 |
+
```
|
X-GENRE-dev.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
X-GENRE-test.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
X-GENRE-train.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:31d35e135b2596628c1e0e5a8b019ea389c33ad3b1ccb1a961df6eebbaa34c9b
|
3 |
+
size 11153927
|