Change config class name
Browse files- fixtures_image_utils.py +3 -3
fixtures_image_utils.py
CHANGED
|
@@ -16,7 +16,7 @@ import textwrap
|
|
| 16 |
import datasets
|
| 17 |
_CITATION = """\\n"""
|
| 18 |
_DESCRIPTION = """\\n"""
|
| 19 |
-
class
|
| 20 |
"""BuilderConfig for fixtures OCR"""
|
| 21 |
def __init__(
|
| 22 |
self,
|
|
@@ -25,7 +25,7 @@ class FixturesOCRConfig(datasets.BuilderConfig):
|
|
| 25 |
task_templates=None,
|
| 26 |
**kwargs,
|
| 27 |
):
|
| 28 |
-
super(
|
| 29 |
version=datasets.Version("1.9.0", ""), **kwargs
|
| 30 |
)
|
| 31 |
self.data_url = data_url
|
|
@@ -34,7 +34,7 @@ class FixturesOCRConfig(datasets.BuilderConfig):
|
|
| 34 |
class FixturesOCR(datasets.GeneratorBasedBuilder):
|
| 35 |
"""Fixtures for OCR models. Includes 2 images."""
|
| 36 |
BUILDER_CONFIGS = [
|
| 37 |
-
|
| 38 |
name="image",
|
| 39 |
description=textwrap.dedent(""),
|
| 40 |
url="",
|
|
|
|
| 16 |
import datasets
|
| 17 |
_CITATION = """\\n"""
|
| 18 |
_DESCRIPTION = """\\n"""
|
| 19 |
+
class FixturesImageUtilsConfig(datasets.BuilderConfig):
|
| 20 |
"""BuilderConfig for fixtures OCR"""
|
| 21 |
def __init__(
|
| 22 |
self,
|
|
|
|
| 25 |
task_templates=None,
|
| 26 |
**kwargs,
|
| 27 |
):
|
| 28 |
+
super(FixturesImageUtilsConfig, self).__init__(
|
| 29 |
version=datasets.Version("1.9.0", ""), **kwargs
|
| 30 |
)
|
| 31 |
self.data_url = data_url
|
|
|
|
| 34 |
class FixturesOCR(datasets.GeneratorBasedBuilder):
|
| 35 |
"""Fixtures for OCR models. Includes 2 images."""
|
| 36 |
BUILDER_CONFIGS = [
|
| 37 |
+
FixturesImageUtilsConfig(
|
| 38 |
name="image",
|
| 39 |
description=textwrap.dedent(""),
|
| 40 |
url="",
|