import datasets from datasets import Value, Sequence _FILES = [ "data/train-00000-of-00018-16cb83e91f64d4d6.parquet", "data/train-00001-of-00018-6bb750ed47464c0d.parquet", "data/train-00002-of-00018-7a631b2e4e6f40af.parquet", "data/train-00003-of-00018-0ec6c3d08d6ea1a2.parquet", "data/train-00004-of-00018-ce51dbd05d6dbe28.parquet", "data/train-00005-of-00018-3a0bf68734069edb.parquet", "data/train-00006-of-00018-97ab85813efd68b1.parquet", "data/train-00007-of-00018-14561445cd1dd979.parquet", "data/train-00008-of-00018-da9a8fbc6d3d50c9.parquet", "data/train-00009-of-00018-be948786c40d3d75.parquet", "data/train-00010-of-00018-b4079a6e491f037b.parquet", "data/train-00011-of-00018-4ec043bbd6e230e3.parquet", "data/train-00012-of-00018-2dec53ec4e1f913d.parquet", "data/train-00013-of-00018-9356d3d9147b5933.parquet", "data/train-00014-of-00018-865b62e8796288cb.parquet", "data/train-00015-of-00018-728129d4eb326817.parquet", "data/train-00016-of-00018-3671c223bfd80b17.parquet", "data/train-00017-of-00018-e8d65d8cf24c3130.parquet", ] class NamuWikiConfig(datasets.BuilderConfig): """BuilderConfig for NamuWiki""" def __init__(self, features, data_url, citation, url, **kwargs): """BuilderConfig for NamuWiki. Args: **kwargs: keyword arguments forwarded to super. """ super().__init__(version=datasets.Version("1.0.2"), **kwargs) self.features = features self.data_url = data_url self.citation = citation self.url = url TEXTS = [ NamuWikiConfig( name="raw", features=datasets.Features( { "id": Value(dtype='string', id=None), "title": Value(dtype='string', id=None), "text": Value(dtype='string', id=None), "contributors": Sequence(feature=Value(dtype='string', id=None), length=-1, id=None) } ), data_url=_FILES, citation="", url="", ), NamuWikiConfig( name="processed", features=datasets.Features( { "id": Value(dtype='string', id=None), "title": Value(dtype='string', id=None), "text": Value(dtype='string', id=None), "contributors": Sequence(feature=Value(dtype='string', id=None), length=-1, id=None) } ), data_url=_FILES, citation="", url="", ) ] SUB_DATASETS = TEXTS