Datasets:
Tasks:
Token Classification
Modalities:
Text
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
100K - 1M
ArXiv:
License:
Update tweetner7.py
Browse files- tweetner7.py +3 -2
tweetner7.py
CHANGED
@@ -6,7 +6,7 @@ import datasets
|
|
6 |
logger = datasets.logging.get_logger(__name__)
|
7 |
_DESCRIPTION = """[TweetNER7](TBA)"""
|
8 |
_NAME = "tweetner7"
|
9 |
-
_VERSION = "1.0.
|
10 |
_CITATION = """
|
11 |
TBA
|
12 |
"""
|
@@ -68,12 +68,13 @@ class TweetNER7(datasets.GeneratorBasedBuilder):
|
|
68 |
_key += 1
|
69 |
|
70 |
def _info(self):
|
|
|
71 |
return datasets.DatasetInfo(
|
72 |
description=_DESCRIPTION,
|
73 |
features=datasets.Features(
|
74 |
{
|
75 |
"tokens": datasets.Sequence(datasets.Value("string")),
|
76 |
-
"tags": datasets.Sequence(datasets.
|
77 |
"id": datasets.Value("string"),
|
78 |
"date": datasets.Value("string")
|
79 |
}
|
|
|
6 |
logger = datasets.logging.get_logger(__name__)
|
7 |
_DESCRIPTION = """[TweetNER7](TBA)"""
|
8 |
_NAME = "tweetner7"
|
9 |
+
_VERSION = "1.0.4"
|
10 |
_CITATION = """
|
11 |
TBA
|
12 |
"""
|
|
|
68 |
_key += 1
|
69 |
|
70 |
def _info(self):
|
71 |
+
names = ['B-corporation', 'B-creative_work', 'B-event', 'B-group', 'B-location', 'B-person', 'B-product', 'I-corporation', 'I-creative_work', 'I-event', 'I-group', 'I-location', 'I-person', 'I-product', 'O']
|
72 |
return datasets.DatasetInfo(
|
73 |
description=_DESCRIPTION,
|
74 |
features=datasets.Features(
|
75 |
{
|
76 |
"tokens": datasets.Sequence(datasets.Value("string")),
|
77 |
+
"tags": datasets.Sequence(datasets.features.ClassLabel(names=names)),
|
78 |
"id": datasets.Value("string"),
|
79 |
"date": datasets.Value("string")
|
80 |
}
|