Datasets:
Tasks:
Token Classification
Modalities:
Text
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K - 10K
ArXiv:
License:
Update tweebank_ner.py
Browse files- 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.
|
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.
|
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,
|