Datasets:
kargaranamir
commited on
add how to load.
Browse files
README.md
CHANGED
@@ -6445,6 +6445,39 @@ It is built using the [GlotLID](https://github.com/cisnlp/GlotLID) language iden
|
|
6445 |
The current version is filtered based on adopted filters from C4, CCNet, MADLAD-400, RedPajama-Data-v2, OSCAR, Gopher, RefinedWeb, FineWeb, Datatrove, Dolma, Pile-CC, Pretrainer's Guide, and GlotScript. We remove personally identifiable information and perform a self-audit to ensure the quality of the generated corpus.
|
6446 |
We release our pipeline as open-source at [https://github.com/cisnlp/GlotCC](https://github.com/cisnlp/GlotCC).
|
6447 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6448 |
## Additional Information
|
6449 |
|
6450 |
The dataset is currently heavily under audit and changes accordingly.
|
|
|
6445 |
The current version is filtered based on adopted filters from C4, CCNet, MADLAD-400, RedPajama-Data-v2, OSCAR, Gopher, RefinedWeb, FineWeb, Datatrove, Dolma, Pile-CC, Pretrainer's Guide, and GlotScript. We remove personally identifiable information and perform a self-audit to ensure the quality of the generated corpus.
|
6446 |
We release our pipeline as open-source at [https://github.com/cisnlp/GlotCC](https://github.com/cisnlp/GlotCC).
|
6447 |
|
6448 |
+
|
6449 |
+
### Usage (Hugging Face Dataloader)
|
6450 |
+
|
6451 |
+
Replace `eng-Latn` with your specific language.
|
6452 |
+
|
6453 |
+
```python
|
6454 |
+
! pip install datasets
|
6455 |
+
```
|
6456 |
+
|
6457 |
+
```python
|
6458 |
+
from datasets import load_dataset
|
6459 |
+
|
6460 |
+
dataset = load_dataset('cis-lmu/GlotCC-V1', 'eng-Latn')
|
6461 |
+
print(dataset['train'][0]) # First row of eng-Latn
|
6462 |
+
```
|
6463 |
+
|
6464 |
+
### Download
|
6465 |
+
|
6466 |
+
If you prefer not to use the Hugging Face dataloader or are interested in a specific language, you can download it directly. For example, to download the first file of `eng-Latn`:
|
6467 |
+
|
6468 |
+
```python
|
6469 |
+
!wget https://huggingface.co/datasets/cis-lmu/GlotCC-V1/blob/main/v1.0/eng-Latn/eng-Latn_0.parquet
|
6470 |
+
```
|
6471 |
+
|
6472 |
+
Then you can load it with any library that supports Parquet files, such as Pandas:
|
6473 |
+
|
6474 |
+
```python
|
6475 |
+
import pandas as pd
|
6476 |
+
|
6477 |
+
dataset = pd.read_parquet('/path/to/eng-Latn_0.parquet')
|
6478 |
+
print(dataset.head())
|
6479 |
+
```
|
6480 |
+
|
6481 |
## Additional Information
|
6482 |
|
6483 |
The dataset is currently heavily under audit and changes accordingly.
|