VanessaSchenkel
commited on
Commit
·
7dd7ea5
1
Parent(s):
fe27814
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
annotations_creators:
|
3 |
+
- found
|
4 |
+
language:
|
5 |
+
- en
|
6 |
+
- pt
|
7 |
+
language_creators:
|
8 |
+
- found
|
9 |
+
license:
|
10 |
+
- afl-3.0
|
11 |
+
multilinguality:
|
12 |
+
- translation
|
13 |
+
pretty_name: VanessaSchenkel/opus_books_en_pt
|
14 |
+
size_categories:
|
15 |
+
- 1K<n<10K
|
16 |
+
source_datasets:
|
17 |
+
- extended|opus_books
|
18 |
+
tags: []
|
19 |
+
task_categories:
|
20 |
+
- translation
|
21 |
+
task_ids: []
|
22 |
+
---
|
23 |
+
|
24 |
+
How to use it:
|
25 |
+
```
|
26 |
+
from datasets import load_dataset
|
27 |
+
remote_dataset = load_dataset("VanessaSchenkel/opus_books_en_pt", field="data")
|
28 |
+
remote_dataset
|
29 |
+
```
|
30 |
+
Output:
|
31 |
+
```
|
32 |
+
DatasetDict({
|
33 |
+
train: Dataset({
|
34 |
+
features: ['id', 'translation'],
|
35 |
+
num_rows: 1404
|
36 |
+
})
|
37 |
+
})
|
38 |
+
```
|
39 |
+
Exemple:
|
40 |
+
```
|
41 |
+
remote_dataset["train"][5]
|
42 |
+
```
|
43 |
+
Output:
|
44 |
+
```
|
45 |
+
{'id': '5',
|
46 |
+
'translation': {'en': "There was nothing so very remarkable in that; nor did Alice think it so very much out of the way to hear the Rabbit say to itself, 'Oh dear!",
|
47 |
+
'pt': 'Não havia nada de tão extraordinário nisso; nem Alice achou assim tão fora do normal ouvir o Coelho dizer para si mesmo: —"Oh, céus!'}}
|
48 |
+
```
|