Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
parquet
Sub-tasks:
language-modeling
Languages:
Danish
Size:
100K - 1M
License:
from datasets import load_dataset | |
from pathlib import Path | |
def test_dataset_loads(): | |
repo = Path(__file__).parent.parent | |
name = str(repo.resolve()) # "danish-foundation-models/danish-gigaword-2" | |
ds = load_dataset(name, split="train", streaming=True) | |
sample = next(iter(ds)) | |
assert isinstance(sample, dict) | |