datasets-explorer / clarin_datasets /dataset_to_show.py
Mariusz Kossakowski
Quick fix
90966f7
raw
history blame
400 Bytes
from datasets import load_dataset
from abc import ABC, abstractmethod
class DatasetToShow(ABC):
@abstractmethod
def __init__(self):
self.dataset_name = None
self.data_dict = None
self.subsets = ["train", "test"]
self.description = None
@abstractmethod
def load_data(self):
pass
@abstractmethod
def show_dataset(self):
pass