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

Update DocLayNet-small.py

Browse files
Files changed (1) hide show
  1. DocLayNet-small.py +5 -3
DocLayNet-small.py CHANGED
@@ -65,7 +65,7 @@ def load_image(image_path):
65
  logger = datasets.logging.get_logger(__name__)
66
 
67
 
68
- class DocLayNetConfig(datasets.BuilderConfig):
69
  """BuilderConfig for DocLayNet small"""
70
 
71
  def __init__(self, name, splits, **kwargs):
@@ -100,10 +100,12 @@ class DocLayNet(datasets.GeneratorBasedBuilder):
100
  # data = datasets.load_dataset('my_dataset', 'first_domain')
101
  # data = datasets.load_dataset('my_dataset', 'second_domain')
102
  BUILDER_CONFIGS = [
103
- DocLayNetConfig(name="DocLayNet", version=datasets.Version("1.0.0"), description="DocLayNeT small dataset"),
104
  ]
105
 
106
- #DEFAULT_CONFIG_NAME = "DocLayNet" # It's not mandatory to have a default configuration. Just use one if it make sense.
 
 
107
 
108
  def _info(self):
109
 
 
65
  logger = datasets.logging.get_logger(__name__)
66
 
67
 
68
+ class DocLayNetBuilderConfig(datasets.BuilderConfig):
69
  """BuilderConfig for DocLayNet small"""
70
 
71
  def __init__(self, name, splits, **kwargs):
 
100
  # data = datasets.load_dataset('my_dataset', 'first_domain')
101
  # data = datasets.load_dataset('my_dataset', 'second_domain')
102
  BUILDER_CONFIGS = [
103
+ DocLayNetBuilderConfig(name="DocLayNet 2022.08 processed on 2023.01", splits=["train", "val", "test"], version=datasets.Version("1.0.0"), description="DocLayNeT small dataset"),
104
  ]
105
 
106
+ BUILDER_CONFIG_CLASS = DocLayNetBuilderConfig
107
+
108
+ DEFAULT_CONFIG_NAME = "DocLayNet 2022.08 processed on 2023.01" # It's not mandatory to have a default configuration. Just use one if it make sense.
109
 
110
  def _info(self):
111