drAbreu commited on
Commit
7fa319e
1 Parent(s): 53ea38e

Update sd-nlp-non-tokenized.py

Browse files

panel_id changed to single value

Files changed (1) hide show
  1. sd-nlp-non-tokenized.py +4 -4
sd-nlp-non-tokenized.py CHANGED
@@ -97,7 +97,7 @@ class SourceDataNLP(datasets.GeneratorBasedBuilder):
97
  names=self._NER_LABEL_NAMES)
98
  ),
99
  "tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
100
- "panel_id": datasets.Sequence(feature=datasets.Value("string")),
101
  }
102
  )
103
  elif self.config.name == "GENEPROD_ROLES":
@@ -125,7 +125,7 @@ class SourceDataNLP(datasets.GeneratorBasedBuilder):
125
  )
126
  ),
127
  "tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
128
- "panel_id": datasets.Sequence(feature=datasets.Value("string")),
129
  }
130
  )
131
  elif self.config.name == "BORING":
@@ -136,7 +136,7 @@ class SourceDataNLP(datasets.GeneratorBasedBuilder):
136
  feature=datasets.ClassLabel(num_classes=len(self._BORING_LABEL_NAMES),
137
  names=self._BORING_LABEL_NAMES)
138
  ),
139
- "panel_id": datasets.Sequence(feature=datasets.Value("string")),
140
  }
141
  )
142
  elif self.config.name == "PANELIZATION":
@@ -148,7 +148,7 @@ class SourceDataNLP(datasets.GeneratorBasedBuilder):
148
  names=self._PANEL_START_NAMES)
149
  ),
150
  "tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
151
- "panel_id": datasets.Sequence(feature=datasets.Value("string")),
152
  }
153
  )
154
 
 
97
  names=self._NER_LABEL_NAMES)
98
  ),
99
  "tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
100
+ "panel_id": datasets.Value("string"),
101
  }
102
  )
103
  elif self.config.name == "GENEPROD_ROLES":
 
125
  )
126
  ),
127
  "tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
128
+ "panel_id": datasets.Value("string"),
129
  }
130
  )
131
  elif self.config.name == "BORING":
 
136
  feature=datasets.ClassLabel(num_classes=len(self._BORING_LABEL_NAMES),
137
  names=self._BORING_LABEL_NAMES)
138
  ),
139
+ "panel_id": datasets.Value("string"),
140
  }
141
  )
142
  elif self.config.name == "PANELIZATION":
 
148
  names=self._PANEL_START_NAMES)
149
  ),
150
  "tag_mask": datasets.Sequence(feature=datasets.Value("int8")),
151
+ "panel_id": datasets.Value("string"),
152
  }
153
  )
154