Datasets:
Tasks:
Token Classification
Modalities:
Text
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K - 10K
License:
Update btc.py
Browse files
btc.py
CHANGED
@@ -6,7 +6,7 @@ import datasets
|
|
6 |
logger = datasets.logging.get_logger(__name__)
|
7 |
_DESCRIPTION = """[BTC](https://aclanthology.org/C16-1111/)"""
|
8 |
_NAME = "btc"
|
9 |
-
_VERSION = "1.0.
|
10 |
_CITATION = """
|
11 |
@inproceedings{derczynski-etal-2016-broad,
|
12 |
title = "Broad {T}witter Corpus: A Diverse Named Entity Recognition Resource",
|
@@ -69,12 +69,13 @@ class BTC(datasets.GeneratorBasedBuilder):
|
|
69 |
_key += 1
|
70 |
|
71 |
def _info(self):
|
|
|
72 |
return datasets.DatasetInfo(
|
73 |
description=_DESCRIPTION,
|
74 |
features=datasets.Features(
|
75 |
{
|
76 |
"tokens": datasets.Sequence(datasets.Value("string")),
|
77 |
-
"tags": datasets.Sequence(datasets.
|
78 |
}
|
79 |
),
|
80 |
supervised_keys=None,
|
|
|
6 |
logger = datasets.logging.get_logger(__name__)
|
7 |
_DESCRIPTION = """[BTC](https://aclanthology.org/C16-1111/)"""
|
8 |
_NAME = "btc"
|
9 |
+
_VERSION = "1.0.1"
|
10 |
_CITATION = """
|
11 |
@inproceedings{derczynski-etal-2016-broad,
|
12 |
title = "Broad {T}witter Corpus: A Diverse Named Entity Recognition Resource",
|
|
|
69 |
_key += 1
|
70 |
|
71 |
def _info(self):
|
72 |
+
names = ["B-LOC", "B-ORG", "B-PER", "I-LOC", "I-ORG", "I-PER", "O"]
|
73 |
return datasets.DatasetInfo(
|
74 |
description=_DESCRIPTION,
|
75 |
features=datasets.Features(
|
76 |
{
|
77 |
"tokens": datasets.Sequence(datasets.Value("string")),
|
78 |
+
"tags": datasets.Sequence(datasets.features.ClassLabel(names=names))
|
79 |
}
|
80 |
),
|
81 |
supervised_keys=None,
|