Datasets:
Tasks:
Token Classification
Modalities:
Text
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K - 10K
License:
Update fin.py
Browse files
fin.py
CHANGED
@@ -21,7 +21,7 @@ _CITATION = """
|
|
21 |
pages = "84--90",
|
22 |
}
|
23 |
"""
|
24 |
-
|
25 |
_HOME_PAGE = "https://github.com/asahi417/tner"
|
26 |
_URL = f'https://huggingface.co/datasets/tner/{_NAME}/raw/main/dataset'
|
27 |
_URLS = {
|
@@ -78,4 +78,5 @@ class Fin(datasets.GeneratorBasedBuilder):
|
|
78 |
supervised_keys=None,
|
79 |
homepage=_HOME_PAGE,
|
80 |
citation=_CITATION,
|
|
|
81 |
)
|
|
|
21 |
pages = "84--90",
|
22 |
}
|
23 |
"""
|
24 |
+
_LABEL2ID = {"O": 0, "B-PER": 1, "B-LOC": 2, "B-ORG": 3, "B-MISC": 4, "I-PER": 5, "I-LOC": 6, "I-ORG": 7, "I-MISC": 8}
|
25 |
_HOME_PAGE = "https://github.com/asahi417/tner"
|
26 |
_URL = f'https://huggingface.co/datasets/tner/{_NAME}/raw/main/dataset'
|
27 |
_URLS = {
|
|
|
78 |
supervised_keys=None,
|
79 |
homepage=_HOME_PAGE,
|
80 |
citation=_CITATION,
|
81 |
+
label2id=_LABEL2ID
|
82 |
)
|