asahi417 commited on
Commit
9d9c27f
1 Parent(s): 5f0f25a

Update tweetner7.py

Browse files
Files changed (1) hide show
  1. 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.3"
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.Value("int32")),
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
  }