Datasets:
tner
/

Modalities:
Text
Languages:
English
ArXiv:
Libraries:
Datasets
License:
asahi417 commited on
Commit
cb0fecb
1 Parent(s): 572a821

Update tweebank_ner.py

Browse files
Files changed (1) hide show
  1. tweebank_ner.py +3 -2
tweebank_ner.py CHANGED
@@ -6,7 +6,7 @@ import datasets
6
  logger = datasets.logging.get_logger(__name__)
7
  _DESCRIPTION = """[Tweebank NER](https://arxiv.org/abs/2201.07281)"""
8
  _NAME = "tweebank_ner"
9
- _VERSION = "1.0.0"
10
  _CITATION = """
11
  @article{DBLP:journals/corr/abs-2201-07281,
12
  author = {Hang Jiang and
@@ -72,12 +72,13 @@ class TweebankNER(datasets.GeneratorBasedBuilder):
72
  _key += 1
73
 
74
  def _info(self):
 
75
  return datasets.DatasetInfo(
76
  description=_DESCRIPTION,
77
  features=datasets.Features(
78
  {
79
  "tokens": datasets.Sequence(datasets.Value("string")),
80
- "tags": datasets.Sequence(datasets.Value("int32")),
81
  }
82
  ),
83
  supervised_keys=None,
 
6
  logger = datasets.logging.get_logger(__name__)
7
  _DESCRIPTION = """[Tweebank NER](https://arxiv.org/abs/2201.07281)"""
8
  _NAME = "tweebank_ner"
9
+ _VERSION = "1.0.1"
10
  _CITATION = """
11
  @article{DBLP:journals/corr/abs-2201-07281,
12
  author = {Hang Jiang and
 
72
  _key += 1
73
 
74
  def _info(self):
75
+ names = ["B-LOC", "B-MISC", "B-ORG", "B-PER", "I-LOC", "I-MISC", "I-ORG", "I-PER", "O"]
76
  return datasets.DatasetInfo(
77
  description=_DESCRIPTION,
78
  features=datasets.Features(
79
  {
80
  "tokens": datasets.Sequence(datasets.Value("string")),
81
+ "tags": datasets.Sequence(datasets.features.ClassLabel(names=names)),
82
  }
83
  ),
84
  supervised_keys=None,