Update files from the datasets library (from 1.7.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.7.0
README.md
CHANGED
@@ -116,7 +116,7 @@ languages:
|
|
116 |
- new
|
117 |
- nl
|
118 |
- nn
|
119 |
-
-
|
120 |
- oc
|
121 |
- or
|
122 |
- os
|
@@ -845,6 +845,7 @@ task_categories:
|
|
845 |
- sequence-modeling
|
846 |
task_ids:
|
847 |
- language-modeling
|
|
|
848 |
---
|
849 |
|
850 |
# Dataset Card for "oscar"
|
@@ -852,12 +853,12 @@ task_ids:
|
|
852 |
## Table of Contents
|
853 |
- [Dataset Description](#dataset-description)
|
854 |
- [Dataset Summary](#dataset-summary)
|
855 |
-
- [Supported Tasks](#supported-tasks)
|
856 |
- [Languages](#languages)
|
857 |
- [Dataset Structure](#dataset-structure)
|
858 |
- [Data Instances](#data-instances)
|
859 |
- [Data Fields](#data-fields)
|
860 |
-
- [Data Splits
|
861 |
- [Dataset Creation](#dataset-creation)
|
862 |
- [Curation Rationale](#curation-rationale)
|
863 |
- [Source Data](#source-data)
|
@@ -884,7 +885,7 @@ task_ids:
|
|
884 |
|
885 |
OSCAR or **O**pen **S**uper-large **C**rawled [**A**LMAnaCH](https://team.inria.fr/almanach/) co**R**pus is a huge multilingual corpus obtained by language classification and filtering of the [Common Crawl](https://commoncrawl.org/) corpus using the [goclassy](https://github.com/pjox/goclassy) architecture. Data is distributed by language in both original and deduplicated form.
|
886 |
|
887 |
-
### Supported Tasks
|
888 |
|
889 |
OSCAR is mainly inteded to pretrain language models and word represantations.
|
890 |
|
@@ -6137,7 +6138,7 @@ The data fields are the same among all configs.
|
|
6137 |
- `id`: a `int64` feature.
|
6138 |
- `text`: a `string` feature.
|
6139 |
|
6140 |
-
### Data Splits
|
6141 |
|
6142 |
|
6143 |
<details>
|
|
|
116 |
- new
|
117 |
- nl
|
118 |
- nn
|
119 |
+
- 'no'
|
120 |
- oc
|
121 |
- or
|
122 |
- os
|
|
|
845 |
- sequence-modeling
|
846 |
task_ids:
|
847 |
- language-modeling
|
848 |
+
paperswithcode_id: oscar
|
849 |
---
|
850 |
|
851 |
# Dataset Card for "oscar"
|
|
|
853 |
## Table of Contents
|
854 |
- [Dataset Description](#dataset-description)
|
855 |
- [Dataset Summary](#dataset-summary)
|
856 |
+
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
857 |
- [Languages](#languages)
|
858 |
- [Dataset Structure](#dataset-structure)
|
859 |
- [Data Instances](#data-instances)
|
860 |
- [Data Fields](#data-fields)
|
861 |
+
- [Data Splits](#data-splits)
|
862 |
- [Dataset Creation](#dataset-creation)
|
863 |
- [Curation Rationale](#curation-rationale)
|
864 |
- [Source Data](#source-data)
|
|
|
885 |
|
886 |
OSCAR or **O**pen **S**uper-large **C**rawled [**A**LMAnaCH](https://team.inria.fr/almanach/) co**R**pus is a huge multilingual corpus obtained by language classification and filtering of the [Common Crawl](https://commoncrawl.org/) corpus using the [goclassy](https://github.com/pjox/goclassy) architecture. Data is distributed by language in both original and deduplicated form.
|
887 |
|
888 |
+
### Supported Tasks and Leaderboards
|
889 |
|
890 |
OSCAR is mainly inteded to pretrain language models and word represantations.
|
891 |
|
|
|
6138 |
- `id`: a `int64` feature.
|
6139 |
- `text`: a `string` feature.
|
6140 |
|
6141 |
+
### Data Splits
|
6142 |
|
6143 |
|
6144 |
<details>
|
oscar.py
CHANGED
@@ -355,7 +355,7 @@ class Oscar(datasets.GeneratorBasedBuilder):
|
|
355 |
current_lines = []
|
356 |
for filepath in filepaths:
|
357 |
logger.info("generating examples from = %s", filepath)
|
358 |
-
with gzip.open(filepath, "rt") as f:
|
359 |
for line in f:
|
360 |
if len(line.strip()) > 0:
|
361 |
current_lines.append(line)
|
|
|
355 |
current_lines = []
|
356 |
for filepath in filepaths:
|
357 |
logger.info("generating examples from = %s", filepath)
|
358 |
+
with gzip.open(filepath, "rt", encoding="utf-8") as f:
|
359 |
for line in f:
|
360 |
if len(line.strip()) > 0:
|
361 |
current_lines.append(line)
|