Update SLR.py
Browse files
SLR.py
CHANGED
|
@@ -13,7 +13,7 @@ logger = datasets.logging.get_logger(__name__)
|
|
| 13 |
|
| 14 |
_CITATION = """\
|
| 15 |
|
| 16 |
-
title={
|
| 17 |
|
| 18 |
}
|
| 19 |
"""
|
|
@@ -42,11 +42,11 @@ def normalize_bbox(bbox, size):
|
|
| 42 |
]
|
| 43 |
|
| 44 |
|
| 45 |
-
class
|
| 46 |
-
"""BuilderConfig for
|
| 47 |
|
| 48 |
def __init__(self, **kwargs):
|
| 49 |
-
"""BuilderConfig for
|
| 50 |
|
| 51 |
Args:
|
| 52 |
**kwargs: keyword arguments forwarded to super.
|
|
@@ -54,11 +54,11 @@ class SRLConfig(datasets.BuilderConfig):
|
|
| 54 |
super(SRLConfig, self).__init__(**kwargs)
|
| 55 |
|
| 56 |
|
| 57 |
-
class
|
| 58 |
-
"""
|
| 59 |
|
| 60 |
BUILDER_CONFIGS = [
|
| 61 |
-
SRLConfig(name="
|
| 62 |
]
|
| 63 |
|
| 64 |
def _info(self):
|
|
|
|
| 13 |
|
| 14 |
_CITATION = """\
|
| 15 |
|
| 16 |
+
title={SLR dataset},
|
| 17 |
|
| 18 |
}
|
| 19 |
"""
|
|
|
|
| 42 |
]
|
| 43 |
|
| 44 |
|
| 45 |
+
class SLRConfig(datasets.BuilderConfig):
|
| 46 |
+
"""BuilderConfig for SLR"""
|
| 47 |
|
| 48 |
def __init__(self, **kwargs):
|
| 49 |
+
"""BuilderConfig for SLR.
|
| 50 |
|
| 51 |
Args:
|
| 52 |
**kwargs: keyword arguments forwarded to super.
|
|
|
|
| 54 |
super(SRLConfig, self).__init__(**kwargs)
|
| 55 |
|
| 56 |
|
| 57 |
+
class SLR(datasets.GeneratorBasedBuilder):
|
| 58 |
+
"""SLR dataset."""
|
| 59 |
|
| 60 |
BUILDER_CONFIGS = [
|
| 61 |
+
SRLConfig(name="SLR", version=datasets.Version("1.0.0"), description="SLR dataset"),
|
| 62 |
]
|
| 63 |
|
| 64 |
def _info(self):
|