ramybaly commited on
Commit
ad5cea2
·
1 Parent(s): 583410c

fixed bug in dataset script

Browse files
Files changed (1) hide show
  1. nerd.py +67 -67
nerd.py CHANGED
@@ -70,79 +70,79 @@ class NERD(datasets.GeneratorBasedBuilder):
70
  "tokens": datasets.Sequence(datasets.Value("string")),
71
  "ner_tags": datasets.Sequence(
72
  datasets.features.ClassLabel(
73
- names=['O', 'art', 'building', 'event', 'location', 'organization', 'other', 'person', 'product']
74
  )
75
  ),
76
  "ner_tags_fine": datasets.Sequence(
77
  datasets.features.ClassLabel(
78
  names=[
79
  'O',
80
- 'art-broadcastprogram',
81
- 'art-film',
82
- 'art-music',
83
- 'art-other',
84
- 'art-painting',
85
- 'art-writtenart',
86
- 'building-airport',
87
- 'building-hospital',
88
- 'building-hotel',
89
- 'building-library',
90
- 'building-other',
91
- 'building-restaurant',
92
- 'building-sportsfacility',
93
- 'building-theater',
94
- 'event-attack/battle/war/militaryconflict',
95
- 'event-disaster',
96
- 'event-election',
97
- 'event-other',
98
- 'event-protest',
99
- 'event-sportsevent',
100
- 'location-GPE',
101
- 'location-bodiesofwater',
102
- 'location-island',
103
- 'location-mountain',
104
- 'location-other',
105
- 'location-park',
106
- 'location-road/railway/highway/transit',
107
- 'organization-company',
108
- 'organization-education',
109
- 'organization-government/governmentagency',
110
- 'organization-media/newspaper',
111
- 'organization-other',
112
- 'organization-politicalparty',
113
- 'organization-religion',
114
- 'organization-showorganization',
115
- 'organization-sportsleague',
116
- 'organization-sportsteam',
117
- 'other-astronomything',
118
- 'other-award',
119
- 'other-biologything',
120
- 'other-chemicalthing',
121
- 'other-currency',
122
- 'other-disease',
123
- 'other-educationaldegree',
124
- 'other-god',
125
- 'other-language',
126
- 'other-law',
127
- 'other-livingthing',
128
- 'other-medical',
129
- 'person-actor',
130
- 'person-artist/author',
131
- 'person-athlete',
132
- 'person-director',
133
- 'person-other',
134
- 'person-politician',
135
- 'person-scholar',
136
- 'person-soldier',
137
- 'product-airplane',
138
- 'product-car',
139
- 'product-food',
140
- 'product-game',
141
- 'product-other',
142
- 'product-ship',
143
- 'product-software',
144
- 'product-train',
145
- 'product-weapon'
146
  ]
147
  )
148
  ),
 
70
  "tokens": datasets.Sequence(datasets.Value("string")),
71
  "ner_tags": datasets.Sequence(
72
  datasets.features.ClassLabel(
73
+ names=['O', 'I-art', 'I-building', 'I-event', 'I-location', 'I-organization', 'I-other', 'I-person', 'I-product']
74
  )
75
  ),
76
  "ner_tags_fine": datasets.Sequence(
77
  datasets.features.ClassLabel(
78
  names=[
79
  'O',
80
+ 'I-art-broadcastprogram',
81
+ 'I-art-film',
82
+ 'I-art-music',
83
+ 'I-art-other',
84
+ 'I-art-painting',
85
+ 'I-art-writtenart',
86
+ 'I-building-airport',
87
+ 'I-building-hospital',
88
+ 'I-building-hotel',
89
+ 'I-building-library',
90
+ 'I-building-other',
91
+ 'I-building-restaurant',
92
+ 'I-building-sportsfacility',
93
+ 'I-building-theater',
94
+ 'I-event-attack/battle/war/militaryconflict',
95
+ 'I-event-disaster',
96
+ 'I-event-election',
97
+ 'I-event-other',
98
+ 'I-event-protest',
99
+ 'I-event-sportsevent',
100
+ 'I-location-GPE',
101
+ 'I-location-bodiesofwater',
102
+ 'I-location-island',
103
+ 'I-location-mountain',
104
+ 'I-location-other',
105
+ 'I-location-park',
106
+ 'I-location-road/railway/highway/transit',
107
+ 'I-organization-company',
108
+ 'I-organization-education',
109
+ 'I-organization-government/governmentagency',
110
+ 'I-organization-media/newspaper',
111
+ 'I-organization-other',
112
+ 'I-organization-politicalparty',
113
+ 'I-organization-religion',
114
+ 'I-organization-showorganization',
115
+ 'I-organization-sportsleague',
116
+ 'I-organization-sportsteam',
117
+ 'I-other-astronomything',
118
+ 'I-other-award',
119
+ 'I-other-biologything',
120
+ 'I-other-chemicalthing',
121
+ 'I-other-currency',
122
+ 'I-other-disease',
123
+ 'I-other-educationaldegree',
124
+ 'I-other-god',
125
+ 'I-other-language',
126
+ 'I-other-law',
127
+ 'I-other-livingthing',
128
+ 'I-other-medical',
129
+ 'I-person-actor',
130
+ 'I-person-artist/author',
131
+ 'I-person-athlete',
132
+ 'I-person-director',
133
+ 'I-person-other',
134
+ 'I-person-politician',
135
+ 'I-person-scholar',
136
+ 'I-person-soldier',
137
+ 'I-product-airplane',
138
+ 'I-product-car',
139
+ 'I-product-food',
140
+ 'I-product-game',
141
+ 'I-product-other',
142
+ 'I-product-ship',
143
+ 'I-product-software',
144
+ 'I-product-train',
145
+ 'I-product-weapon'
146
  ]
147
  )
148
  ),