Datasets:
First version of the author_profiling dataset.
Browse files- .gitattributes +1 -0
- README.md +308 -0
- data/test.jsonl +3 -0
- data/train.jsonl +3 -0
- data/valid.jsonl +3 -0
.gitattributes
CHANGED
@@ -25,3 +25,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,308 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
annotations_creators:
|
3 |
+
- crowdsourced
|
4 |
+
language_creators:
|
5 |
+
- crowdsourced
|
6 |
+
languages:
|
7 |
+
- ru-Ru
|
8 |
+
licenses:
|
9 |
+
- apache-2.0
|
10 |
+
multilinguality:
|
11 |
+
- monolingual
|
12 |
+
pretty_name: The Corpus for the analysis of author profiling in Russian-language texts.
|
13 |
+
size_categories:
|
14 |
+
- 10K<n<100K
|
15 |
+
source_datasets:
|
16 |
+
- original
|
17 |
+
task_categories:
|
18 |
+
- text-classification
|
19 |
+
task_ids:
|
20 |
+
- multi-class-classification
|
21 |
+
- multi-label-classification
|
22 |
+
---
|
23 |
+
|
24 |
+
# Dataset Card for [author_profiling]
|
25 |
+
|
26 |
+
## Table of Contents
|
27 |
+
- [Dataset Description](#dataset-description)
|
28 |
+
- [Dataset Summary](#dataset-summary)
|
29 |
+
- [Supported Tasks](#supported-tasks-and-leaderboards)
|
30 |
+
- [Languages](#languages)
|
31 |
+
- [Dataset Structure](#dataset-structure)
|
32 |
+
- [Data Instances](#data-instances)
|
33 |
+
- [Data Fields](#data-instances)
|
34 |
+
- [Data Splits](#data-instances)
|
35 |
+
- [Dataset Creation](#dataset-creation)
|
36 |
+
- [Curation Rationale](#curation-rationale)
|
37 |
+
- [Source Data](#source-data)
|
38 |
+
- [Annotations](#annotations)
|
39 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
40 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
41 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
42 |
+
- [Discussion of Biases](#discussion-of-biases)
|
43 |
+
- [Other Known Limitations](#other-known-limitations)
|
44 |
+
- [Additional Information](#additional-information)
|
45 |
+
- [Dataset Curators](#dataset-curators)
|
46 |
+
- [Licensing Information](#licensing-information)
|
47 |
+
- [Citation Information](#citation-information)
|
48 |
+
- [Contributions](#contributions)
|
49 |
+
|
50 |
+
## Dataset Description
|
51 |
+
|
52 |
+
- **Homepage:** https://github.com/sag111/Author-Profiling
|
53 |
+
- **Repository:** https://github.com/sag111/Author-Profiling
|
54 |
+
- **Paper:** [Needs More Information]
|
55 |
+
- **Leaderboard:** [Needs More Information]
|
56 |
+
- **Point of Contact:** [Sboev Alexander](mailto:sag111@mail.ru)
|
57 |
+
|
58 |
+
### Dataset Summary
|
59 |
+
|
60 |
+
The corpus for the author profiling analysis contains texts in Russian-language which labeled for 5 tasks:
|
61 |
+
1) gender -- 13530 texts with the labels, who wrote this: text female or male;
|
62 |
+
2) age -- 13530 texts with the labels, how old the person who wrote the text. This is a number from 12 to 80. In addition, for the classification task we added 5 age groups: 1-19; 20-29; 30-39; 40-49; 50+;
|
63 |
+
3) age imitation -- 7574 texts, where crowdsource authors is asked to write three texts: a) in their natural manner, b) imitating the style of someone younger, c) imitating the style of someone older;
|
64 |
+
4) gender imitation -- 5956 texts, where the crowdsource authors is asked to write texts: in their origin gender and pretending to be the opposite gender;
|
65 |
+
5) style imitation -- 5956 texts, where crowdsource authors is asked to write a text on behalf of another person of your own gender, with a distortion of the authors usual style.
|
66 |
+
|
67 |
+
|
68 |
+
Dataset is collected sing the Yandex.Toloka service [link](https://toloka.yandex.ru/en).
|
69 |
+
|
70 |
+
You can read the data using the following python code:
|
71 |
+
```
|
72 |
+
def load_jsonl(input_path: str) -> list:
|
73 |
+
"""
|
74 |
+
Read list of objects from a JSON lines file.
|
75 |
+
"""
|
76 |
+
data = []
|
77 |
+
with open(input_path, 'r', encoding='utf-8') as f:
|
78 |
+
for line in f:
|
79 |
+
data.append(json.loads(line.rstrip('\n|\r')))
|
80 |
+
print('Loaded {} records from {}/n'.format(len(data), input_path))
|
81 |
+
|
82 |
+
return data
|
83 |
+
|
84 |
+
path_to_file = "./data/train.jsonl"
|
85 |
+
data = load_jsonl(path_to_file)
|
86 |
+
```
|
87 |
+
|
88 |
+
#### Here are some statistics:
|
89 |
+
|
90 |
+
1. For Train file:
|
91 |
+
No. of documents -- 9586
|
92 |
+
No. of unique texts -- 9586
|
93 |
+
Text length in characters -- min: 103, max: 12763, mean: 498.1
|
94 |
+
No. of documents written -- by men: 4767, by women: 4819
|
95 |
+
No. of unique accounts -- 3054
|
96 |
+
No. of unique authors -- 3230; men: 1255, women: 1975
|
97 |
+
Age of the authors -- min: 12, max: 80, mean: 31.1
|
98 |
+
No. of documents by age group -- 1-19: 734, 20-29: 4477, 30-39: 2604, 40-49: 1063,50+: 708
|
99 |
+
No. of documents with gender imitation: 1392; without imitation: 2827; not applicable: 5367
|
100 |
+
No. of documents with age imitation -- younger: 1777; older: 1787; without imitation: 1803; not applicable: 4219
|
101 |
+
No. of documents with style imitation: 1412; without imitation: 2807; not applicable: 5367.
|
102 |
+
|
103 |
+
2. For Valid file:
|
104 |
+
No. of documents -- 1368
|
105 |
+
No. of unique texts -- 1368
|
106 |
+
Text length in characters -- min: 199, max: 2982, mean: 497.9
|
107 |
+
No. of documents written -- by men: 705, by women: 663
|
108 |
+
No. of unique accounts -- 437
|
109 |
+
No. of unique authors -- 461; men: 184, women: 277
|
110 |
+
Age of the authors -- min: 14, max: 78, mean: 32.4
|
111 |
+
No. of documents by age group -- 1-19: 88, 20-29: 510, 30-39: 457, 40-49: 242, 50+: 71
|
112 |
+
No. of documents with gender imitation: 213; without imitation: 425; not applicable: 730
|
113 |
+
No. of documents with age imitation -- younger: 243; older: 236; without imitation: 251; not applicable: 638
|
114 |
+
No. of documents with style imitation: 212; without imitation: 426; not applicable: 730.
|
115 |
+
|
116 |
+
3. For Test file:
|
117 |
+
No. of documents -- 2576
|
118 |
+
No. of unique texts -- 2576
|
119 |
+
Text length in characters -- min: 200, max: 3262, mean: 503.3
|
120 |
+
No. of documents written -- by men: 1293, by women: 1283
|
121 |
+
No. of unique accounts -- 873
|
122 |
+
No. of unique authors -- 915; men: 357, women: 558
|
123 |
+
Age of the authors -- min: 13, max: 71, mean: 30.4
|
124 |
+
No. of documents by age group -- 1-19: 253, 20-29: 1163, 30-39: 713, 40-49: 292, 50+: 155
|
125 |
+
No. of documents with gender imitation: 356; without imitation: 743; not applicable: 1477
|
126 |
+
No. of documents with age imitation -- younger: 497; older: 483; without imitation: 497; not applicable: 1099
|
127 |
+
No. of documents with style imitation: 371; without imitation: 728; not applicable: 1477.
|
128 |
+
|
129 |
+
### Supported Tasks and Leaderboards
|
130 |
+
|
131 |
+
This dataset is intended for multi-class and multi-label text classification.
|
132 |
+
|
133 |
+
The baseline models currently achieve the following F1 metrics scores (table):
|
134 |
+
|
135 |
+
=== coming soon ===
|
136 |
+
|
137 |
+
### Languages
|
138 |
+
|
139 |
+
The text in the dataset is in Russian.
|
140 |
+
|
141 |
+
## Dataset Structure
|
142 |
+
|
143 |
+
### Data Instances
|
144 |
+
|
145 |
+
Each instance is a text in Russian with some author profiling annotations.
|
146 |
+
|
147 |
+
An example for an instance from the dataset is shown below:
|
148 |
+
```
|
149 |
+
{
|
150 |
+
'id': 'crowdsource_4916',
|
151 |
+
'text': 'Ты очень симпатичный, Я давно не с кем не встречалась. Ты мне сильно понравился, ты умный интересный и удивительный, приходи ко мне в гости , у меня есть вкусное вино , и приготовлю вкусный ужин, посидим пообщаемся, узнаем друг друга поближе.',
|
152 |
+
'account_id': '996ff96ebe8c0c51116f32bff0a55bf0',
|
153 |
+
'author_id': 'author_#504'
|
154 |
+
'age': 22,
|
155 |
+
'age_group': '20-29',
|
156 |
+
'gender': 'male',
|
157 |
+
'no_imitation': 0,
|
158 |
+
'age_imitation': nan,
|
159 |
+
'gender_imitation': 1.0,
|
160 |
+
'style_imitation': 0.0,
|
161 |
+
'meta': {
|
162 |
+
'Unnamed: 0': 4915,
|
163 |
+
'age': 22,
|
164 |
+
'doc_ind': 2408,
|
165 |
+
'gender': 1,
|
166 |
+
'imitation_type': 'gender_im',
|
167 |
+
'source': 'gender_imit_crowdsource',
|
168 |
+
'user_id': '996ff96ebe8c0c51116f32bff0a55bf0',
|
169 |
+
'doc_id':
|
170 |
+
'id_gender_imit_cs_4916'
|
171 |
+
},
|
172 |
+
}
|
173 |
+
```
|
174 |
+
|
175 |
+
### Data Fields
|
176 |
+
|
177 |
+
Data Fields includes:
|
178 |
+
- id -- unique identifier of the sample;
|
179 |
+
|
180 |
+
- text -- authors text written by a crowdsourcing user;
|
181 |
+
|
182 |
+
- author_id -- unique identifier of the user;
|
183 |
+
|
184 |
+
- account_id -- unique identifier of the account (several different people (who know each other) could perform a crowdsourcing task under the same account);
|
185 |
+
|
186 |
+
- age -- age annotations;
|
187 |
+
|
188 |
+
- age_group -- age group annotations;
|
189 |
+
|
190 |
+
- no_imitation -- imitation annotations.
|
191 |
+
Label codes:
|
192 |
+
- 0 -- there is some imitation in the text;
|
193 |
+
- 1 -- the text is written without any imitation
|
194 |
+
|
195 |
+
- age_imitation -- age imitation annotations.
|
196 |
+
Label codes:
|
197 |
+
- 'younger' -- someone younger than the author is imitated in the text;
|
198 |
+
- 'older' -- someone older than the author is imitated in the text;
|
199 |
+
- 0 -- the text is written without age imitation;
|
200 |
+
- nan -- not supported (the text was not written for this task)
|
201 |
+
|
202 |
+
- gender_imitation -- gender imitation annotations.
|
203 |
+
Label codes:
|
204 |
+
- 0 -- the text is written without gender imitation;
|
205 |
+
- 1 -- the text is written with a gender imitation;
|
206 |
+
- nan -- not supported (the text was not written for this task)
|
207 |
+
|
208 |
+
- style_imitation -- style imitation annotations.
|
209 |
+
Label codes:
|
210 |
+
- 0 -- the text is written without style imitation;
|
211 |
+
- 1 -- the text is written with a style imitation;
|
212 |
+
- nan -- not supported (the text was not written for this task).
|
213 |
+
|
214 |
+
### Data Splits
|
215 |
+
|
216 |
+
The dataset includes a set of train/valid/test splits with 9586, 1368 and 2576 texts respectively.
|
217 |
+
The unique authors do not overlap between the splits.
|
218 |
+
|
219 |
+
## Dataset Creation
|
220 |
+
|
221 |
+
### Curation Rationale
|
222 |
+
|
223 |
+
The formed dataset of examples consists of texts in Russian using a crowdsourcing platform. The created dataset can be used to improve the accuracy of supervised classifiers in author profiling tasks.
|
224 |
+
|
225 |
+
### Source Data
|
226 |
+
|
227 |
+
#### Initial Data Collection and Normalization
|
228 |
+
|
229 |
+
Data was collected from crowdsource platform. Each text was written by the author specifically for the task provided.
|
230 |
+
|
231 |
+
#### Who are the source language producers?
|
232 |
+
|
233 |
+
Russian-speaking Yandex.Toloka users.
|
234 |
+
|
235 |
+
### Annotations
|
236 |
+
|
237 |
+
#### Annotation process
|
238 |
+
|
239 |
+
We used a crowdsourcing platform to collect texts. Each respondent is asked to fill a questionnaire including their gender, age and native language.
|
240 |
+
|
241 |
+
For age imitation task the respondents are to choose a
|
242 |
+
topic out of a few suggested, and write three texts on it:
|
243 |
+
1) Text in their natural manner;
|
244 |
+
2) Text imitating the style of someone younger;
|
245 |
+
3) Text imitating the style of someone older.
|
246 |
+
|
247 |
+
For gender and style imitation task each author wrote three texts in certain different styles:
|
248 |
+
1) Text in the authors natural style;
|
249 |
+
2) Text imitating other gender style;
|
250 |
+
3) Text in a different style but without gender imitation.
|
251 |
+
|
252 |
+
The topics to choose from are the following.
|
253 |
+
- An attempt to persuade some arbitrary listener to meet the respondent at their place;
|
254 |
+
- A story about some memorable event/acquisition/rumour or whatever else the imaginary listener is supposed to enjoy;
|
255 |
+
- A story about oneself or about someone else, aiming to please the listener and win their favour;
|
256 |
+
- A description of oneself and one’s potential partner for a dating site;
|
257 |
+
- An attempt to persuade an unfamiliar person to come;
|
258 |
+
- A negative tour review.
|
259 |
+
|
260 |
+
The task does not pass checking and is considered improper work if it contains:
|
261 |
+
- Irrelevant answers to the questionnaire;
|
262 |
+
- Incoherent jumble of words;
|
263 |
+
- Chunks of text borrowed from somewhere else;
|
264 |
+
- Texts not conforming to the above list of topics.
|
265 |
+
|
266 |
+
Texts checking is performed firstly by automated search for borrowings (by an anti-plagiarism website), and then by manual review of compliance to the task.
|
267 |
+
|
268 |
+
#### Who are the annotators?
|
269 |
+
|
270 |
+
Russian-speaking Yandex.Toloka users.
|
271 |
+
|
272 |
+
### Personal and Sensitive Information
|
273 |
+
|
274 |
+
All personal data was anonymized. Each author has been assigned an impersonal, unique identifier.
|
275 |
+
|
276 |
+
## Considerations for Using the Data
|
277 |
+
|
278 |
+
### Social Impact of Dataset
|
279 |
+
|
280 |
+
[Needs More Information]
|
281 |
+
|
282 |
+
### Discussion of Biases
|
283 |
+
|
284 |
+
[Needs More Information]
|
285 |
+
|
286 |
+
### Other Known Limitations
|
287 |
+
|
288 |
+
[Needs More Information]
|
289 |
+
|
290 |
+
## Additional Information
|
291 |
+
|
292 |
+
### Dataset Curators
|
293 |
+
|
294 |
+
Researchers at AI technology lab at NRC "Kurchatov Institute". See the [website](https://sagteam.ru/).
|
295 |
+
|
296 |
+
### Licensing Information
|
297 |
+
|
298 |
+
Apache License 2.0.
|
299 |
+
|
300 |
+
### Citation Information
|
301 |
+
|
302 |
+
If you have found our results helpful in your work, feel free to cite our publication.
|
303 |
+
```
|
304 |
+
Citation Information coming soon here.
|
305 |
+
```
|
306 |
+
### Contributions
|
307 |
+
|
308 |
+
Thanks to [@naumov-al](https://github.com/naumov-al) for adding this dataset.
|
data/test.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2727833279766d958222c85956ecf6fce80bbe3187f7fc07054c50309586c2d5
|
3 |
+
size 2961031
|
data/train.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a3abfec718ee6f31eeb98c16fbf8221311392d87b8403f6f3ea37d9166688e38
|
3 |
+
size 10918906
|
data/valid.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f7727c4fa5fa63003db132cf17634f26c036d54ec840e9151f53694b7875e30b
|
3 |
+
size 1558821
|