asahi417 commited on
Commit
12fe035
·
1 Parent(s): 2cd35ed

Update fin.py

Browse files
Files changed (1) hide show
  1. fin.py +2 -1
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
  )