Duy Huynh commited on
Commit ·
cc8d469
1
Parent(s): a973aa2
Initialize
Browse files- OV_Text.py +6 -6
OV_Text.py
CHANGED
|
@@ -9,28 +9,28 @@ OVText
|
|
| 9 |
_CITATION = """\
|
| 10 |
"""
|
| 11 |
|
| 12 |
-
_BASE_URL = "https://huggingface.co/datasets/duyhngoc/OV_Text/
|
| 13 |
TRAIN_FILE = "train.txt"
|
| 14 |
VALIDATION_FILE = "validation.txt"
|
| 15 |
TEST_FILE = "test.txt"
|
| 16 |
|
| 17 |
|
| 18 |
-
class
|
| 19 |
"""BuilderConfig"""
|
| 20 |
|
| 21 |
def __init__(self, **kwargs):
|
| 22 |
-
super(
|
| 23 |
|
| 24 |
|
| 25 |
class UTSText(datasets.GeneratorBasedBuilder):
|
| 26 |
"""OV Word Tokenize datasets"""
|
| 27 |
VERSION = datasets.Version("1.0.0")
|
| 28 |
BUILDER_CONFIGS = [
|
| 29 |
-
|
| 30 |
name="small", version=VERSION, description="OV_Text Small"),
|
| 31 |
-
|
| 32 |
name="base", version=VERSION, description="OV_Text Base"),
|
| 33 |
-
|
| 34 |
name="large", version=VERSION, description="OV_Text Large")
|
| 35 |
]
|
| 36 |
|
|
|
|
| 9 |
_CITATION = """\
|
| 10 |
"""
|
| 11 |
|
| 12 |
+
_BASE_URL = "https://huggingface.co/datasets/duyhngoc/OV_Text/tree/main/data/"
|
| 13 |
TRAIN_FILE = "train.txt"
|
| 14 |
VALIDATION_FILE = "validation.txt"
|
| 15 |
TEST_FILE = "test.txt"
|
| 16 |
|
| 17 |
|
| 18 |
+
class OVTextConfig(datasets.BuilderConfig):
|
| 19 |
"""BuilderConfig"""
|
| 20 |
|
| 21 |
def __init__(self, **kwargs):
|
| 22 |
+
super(OVTextConfig, self).__init__(**kwargs)
|
| 23 |
|
| 24 |
|
| 25 |
class UTSText(datasets.GeneratorBasedBuilder):
|
| 26 |
"""OV Word Tokenize datasets"""
|
| 27 |
VERSION = datasets.Version("1.0.0")
|
| 28 |
BUILDER_CONFIGS = [
|
| 29 |
+
OVTextConfig(
|
| 30 |
name="small", version=VERSION, description="OV_Text Small"),
|
| 31 |
+
OVTextConfig(
|
| 32 |
name="base", version=VERSION, description="OV_Text Base"),
|
| 33 |
+
OVTextConfig(
|
| 34 |
name="large", version=VERSION, description="OV_Text Large")
|
| 35 |
]
|
| 36 |
|