Datasets:
kargaranamir
commited on
update instruction.
Browse files
README.md
CHANGED
@@ -6446,7 +6446,7 @@ The current version is filtered based on adopted filters from C4, CCNet, MADLAD-
|
|
6446 |
We release our pipeline as open-source at [https://github.com/cisnlp/GlotCC](https://github.com/cisnlp/GlotCC).
|
6447 |
|
6448 |
|
6449 |
-
### Usage (Huggingface Hub
|
6450 |
|
6451 |
Replace `bal-Arab` with your specific language.
|
6452 |
|
@@ -6480,9 +6480,25 @@ dataset = pd.read_parquet('./path/to/glotcc-v1/v1.0/bal-Arab/bal-Arab_0.parquet'
|
|
6480 |
print(dataset.head())
|
6481 |
```
|
6482 |
|
|
|
6483 |
### Usage (Huggingface datasets)
|
6484 |
|
6485 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6486 |
```python
|
6487 |
from datasets import load_dataset
|
6488 |
|
|
|
6446 |
We release our pipeline as open-source at [https://github.com/cisnlp/GlotCC](https://github.com/cisnlp/GlotCC).
|
6447 |
|
6448 |
|
6449 |
+
### Usage (Huggingface Hub -- Recommended)
|
6450 |
|
6451 |
Replace `bal-Arab` with your specific language.
|
6452 |
|
|
|
6480 |
print(dataset.head())
|
6481 |
```
|
6482 |
|
6483 |
+
|
6484 |
### Usage (Huggingface datasets)
|
6485 |
|
6486 |
|
6487 |
+
```python
|
6488 |
+
from datasets import load_dataset
|
6489 |
+
|
6490 |
+
# Replace "bal-Arab" with the name of any other language available in the dataset
|
6491 |
+
dataset = load_dataset("cis-lmu/glotcc-v1", name="bal-Arab", split="train")
|
6492 |
+
|
6493 |
+
# Print the first row of data
|
6494 |
+
print(dataset[0])
|
6495 |
+
|
6496 |
+
```
|
6497 |
+
|
6498 |
+
|
6499 |
+
### Usage (Huggingface datasets -- streaming=True)
|
6500 |
+
|
6501 |
+
|
6502 |
```python
|
6503 |
from datasets import load_dataset
|
6504 |
|