Datasets:
update README
Browse files
README.md
CHANGED
|
@@ -60,7 +60,7 @@ task_ids:
|
|
| 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 |
|
| 63 |
-
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:
|
| 64 |
|
| 65 |
3) age imitation -- 7574 texts, where crowdsource authors is asked to write three texts:
|
| 66 |
a) in their natural manner,
|
|
@@ -91,6 +91,14 @@ def load_jsonl(input_path: str) -> list:
|
|
| 91 |
path_to_file = "./data/train.jsonl"
|
| 92 |
data = load_jsonl(path_to_file)
|
| 93 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
#### Here are some statistics:
|
| 96 |
|
|
@@ -161,10 +169,10 @@ An example for an instance from the dataset is shown below:
|
|
| 161 |
'age': 22,
|
| 162 |
'age_group': '20-29',
|
| 163 |
'gender': 'male',
|
| 164 |
-
'no_imitation': 0,
|
| 165 |
-
'age_imitation': nan,
|
| 166 |
-
'gender_imitation': 1
|
| 167 |
-
'style_imitation': 0
|
| 168 |
}
|
| 169 |
```
|
| 170 |
|
|
@@ -185,27 +193,27 @@ Data Fields includes:
|
|
| 185 |
|
| 186 |
- no_imitation -- imitation annotations.
|
| 187 |
Label codes:
|
| 188 |
-
- 0 -- there is some imitation in the text;
|
| 189 |
-
- 1 -- the text is written without any imitation
|
| 190 |
|
| 191 |
- age_imitation -- age imitation annotations.
|
| 192 |
Label codes:
|
| 193 |
- 'younger' -- someone younger than the author is imitated in the text;
|
| 194 |
- 'older' -- someone older than the author is imitated in the text;
|
| 195 |
-
- 0 -- the text is written without age imitation;
|
| 196 |
-
- nan -- not supported (the text was not written for this task)
|
| 197 |
|
| 198 |
- gender_imitation -- gender imitation annotations.
|
| 199 |
Label codes:
|
| 200 |
-
- 0 -- the text is written without gender imitation;
|
| 201 |
-
- 1 -- the text is written with a gender imitation;
|
| 202 |
-
- nan -- not supported (the text was not written for this task)
|
| 203 |
|
| 204 |
- style_imitation -- style imitation annotations.
|
| 205 |
Label codes:
|
| 206 |
-
- 0 -- the text is written without style imitation;
|
| 207 |
-
- 1 -- the text is written with a style imitation;
|
| 208 |
-
- nan -- not supported (the text was not written for this task).
|
| 209 |
|
| 210 |
### Data Splits
|
| 211 |
|
|
|
|
| 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 |
|
| 63 |
+
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: 0-19; 20-29; 30-39; 40-49; 50+;
|
| 64 |
|
| 65 |
3) age imitation -- 7574 texts, where crowdsource authors is asked to write three texts:
|
| 66 |
a) in their natural manner,
|
|
|
|
| 91 |
path_to_file = "./data/train.jsonl"
|
| 92 |
data = load_jsonl(path_to_file)
|
| 93 |
```
|
| 94 |
+
or you can use HuggingFace style:
|
| 95 |
+
```
|
| 96 |
+
from datasets import load_dataset
|
| 97 |
+
|
| 98 |
+
train_df = load_dataset('sagteam/author_profiling', split='train')
|
| 99 |
+
valid_df = load_dataset('sagteam/author_profiling', split='valid')
|
| 100 |
+
test_df = load_dataset('sagteam/author_profiling', split='test')
|
| 101 |
+
```
|
| 102 |
|
| 103 |
#### Here are some statistics:
|
| 104 |
|
|
|
|
| 169 |
'age': 22,
|
| 170 |
'age_group': '20-29',
|
| 171 |
'gender': 'male',
|
| 172 |
+
'no_imitation': '0',
|
| 173 |
+
'age_imitation': 'nan',
|
| 174 |
+
'gender_imitation': '1',
|
| 175 |
+
'style_imitation': '0'
|
| 176 |
}
|
| 177 |
```
|
| 178 |
|
|
|
|
| 193 |
|
| 194 |
- no_imitation -- imitation annotations.
|
| 195 |
Label codes:
|
| 196 |
+
- '0' -- there is some imitation in the text;
|
| 197 |
+
- '1' -- the text is written without any imitation
|
| 198 |
|
| 199 |
- age_imitation -- age imitation annotations.
|
| 200 |
Label codes:
|
| 201 |
- 'younger' -- someone younger than the author is imitated in the text;
|
| 202 |
- 'older' -- someone older than the author is imitated in the text;
|
| 203 |
+
- '0' -- the text is written without age imitation;
|
| 204 |
+
- 'nan' -- not supported (the text was not written for this task)
|
| 205 |
|
| 206 |
- gender_imitation -- gender imitation annotations.
|
| 207 |
Label codes:
|
| 208 |
+
- '0' -- the text is written without gender imitation;
|
| 209 |
+
- '1' -- the text is written with a gender imitation;
|
| 210 |
+
- 'nan' -- not supported (the text was not written for this task)
|
| 211 |
|
| 212 |
- style_imitation -- style imitation annotations.
|
| 213 |
Label codes:
|
| 214 |
+
- '0' -- the text is written without style imitation;
|
| 215 |
+
- '1' -- the text is written with a style imitation;
|
| 216 |
+
- 'nan' -- not supported (the text was not written for this task).
|
| 217 |
|
| 218 |
### Data Splits
|
| 219 |
|