pierreguillou commited on
Commit
69e8aeb
1 Parent(s): c8c38c8

Update DocLayNet-small.py

Browse files
Files changed (1) hide show
  1. DocLayNet-small.py +4 -3
DocLayNet-small.py CHANGED
@@ -68,14 +68,15 @@ logger = datasets.logging.get_logger(__name__)
68
  class DocLayNetConfig(datasets.BuilderConfig):
69
  """BuilderConfig for DocLayNet small"""
70
 
71
- def __init__(self, **kwargs):
72
  """BuilderConfig for DocLayNet small.
73
  Args:
74
  **kwargs: keyword arguments forwarded to super.
75
  """
76
- super(DocLayNetConfig, self).__init__(**kwargs)
77
-
78
 
 
79
  class DocLayNet(datasets.GeneratorBasedBuilder):
80
  """
81
  DocLayNet small is a about 1% of the dataset DocLayNet (more information at https://huggingface.co/datasets/pierreguillou/DocLayNet-small)
 
68
  class DocLayNetConfig(datasets.BuilderConfig):
69
  """BuilderConfig for DocLayNet small"""
70
 
71
+ def __init__(self, name, splits, **kwargs):
72
  """BuilderConfig for DocLayNet small.
73
  Args:
74
  **kwargs: keyword arguments forwarded to super.
75
  """
76
+ super().__init__(name, **kwargs)
77
+ self.splits = splits
78
 
79
+
80
  class DocLayNet(datasets.GeneratorBasedBuilder):
81
  """
82
  DocLayNet small is a about 1% of the dataset DocLayNet (more information at https://huggingface.co/datasets/pierreguillou/DocLayNet-small)