Datasets:
Tasks:
Token Classification
Modalities:
Text
Formats:
parquet
Languages:
Vietnamese
Size:
10K - 100K
Tags:
legal
Delete vi_ner.py
Browse files
vi_ner.py
DELETED
|
@@ -1,60 +0,0 @@
|
|
| 1 |
-
import datasets
|
| 2 |
-
logger = datasets.logging.get_logger(__name__)
|
| 3 |
-
_DESCRIPTION = ""
|
| 4 |
-
_NAME = "Vi-Ner"
|
| 5 |
-
_VERSION = "1.1.0"
|
| 6 |
-
|
| 7 |
-
class Vi_NerConfig(datasets.BuilderConfig):
|
| 8 |
-
"""BuilderConfig for Vi_Ner"""
|
| 9 |
-
|
| 10 |
-
def __init__(self, **kwargs):
|
| 11 |
-
"""BuilderConfig forVi_Ner.
|
| 12 |
-
Args:
|
| 13 |
-
**kwargs: keyword arguments forwarded to super.
|
| 14 |
-
"""
|
| 15 |
-
super(Vi_NerConfig, self).__init__(**kwargs)
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
class Vi_Ner(datasets.GeneratorBasedBuilder):
|
| 19 |
-
"""Vi_Ner dataset."""
|
| 20 |
-
|
| 21 |
-
BUILDER_CONFIGS = [
|
| 22 |
-
Vi_NerConfig(name="Vi_Ner", version=datasets.Version("1.0.0"), description="Vi_Ner dataset"),
|
| 23 |
-
]
|
| 24 |
-
|
| 25 |
-
def _info(self):
|
| 26 |
-
return datasets.DatasetInfo(
|
| 27 |
-
description=_DESCRIPTION,
|
| 28 |
-
features=datasets.Features(
|
| 29 |
-
{
|
| 30 |
-
"tokens": datasets.Sequence(datasets.Value("string")),
|
| 31 |
-
"ner_tags": datasets.Sequence(
|
| 32 |
-
datasets.features.ClassLabel(
|
| 33 |
-
names=['B-DATETIME',
|
| 34 |
-
'B-LOCATION',
|
| 35 |
-
'B-ORGANIZATION',
|
| 36 |
-
'B-PERSON',
|
| 37 |
-
'I-DATETIME',
|
| 38 |
-
'I-LOCATION',
|
| 39 |
-
'I-ORGANIZATION',
|
| 40 |
-
'I-PERSON',
|
| 41 |
-
'O']
|
| 42 |
-
)
|
| 43 |
-
),
|
| 44 |
-
"ner_idx": datasets.Sequence(
|
| 45 |
-
datasets.features.ClassLabel(
|
| 46 |
-
names=['0',
|
| 47 |
-
'1',
|
| 48 |
-
'2',
|
| 49 |
-
'3',
|
| 50 |
-
'4',
|
| 51 |
-
'5',
|
| 52 |
-
'6',
|
| 53 |
-
'7',
|
| 54 |
-
'8']
|
| 55 |
-
)
|
| 56 |
-
)
|
| 57 |
-
}
|
| 58 |
-
),
|
| 59 |
-
|
| 60 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|