This repository has been archived on 2025-12-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2025ML-project-neural_compr.../CNN-model/datasets/EnWik9.py
2025-11-25 20:20:34 +01:00

11 lines
No EOL
284 B
Python

from datasets import load_dataset
from os.path import curdir, join
class EnWik9DataSet:
def __init__(self):
path = join(curdir, "data")
self.data = load_dataset("haukur/enwik9", cache_dir=path, split="train")
def __len__(self):
return len(self.data)