lara-martin
commited on
Update FIREBALL.py
Browse files- FIREBALL.py +17 -18
FIREBALL.py
CHANGED
@@ -73,8 +73,6 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
73 |
# BUILDER_CONFIG_CLASS = MyBuilderConfig
|
74 |
|
75 |
# You will be able to load one or the other configurations in the following list with
|
76 |
-
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
77 |
-
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
78 |
BUILDER_CONFIGS = [
|
79 |
datasets.BuilderConfig(name="FIREBALL", version=VERSION),
|
80 |
]
|
@@ -191,6 +189,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
191 |
url = _URLS[self.config.name]
|
192 |
#data_dir = dl_manager.download_and_extract(urls)
|
193 |
downloaded_files = dl_manager.download([files for root,dir,files in os.walk(url)][0])
|
|
|
194 |
return [
|
195 |
datasets.SplitGenerator(
|
196 |
name=datasets.Split.TRAIN,
|
@@ -212,21 +211,21 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
212 |
# Yields examples as (key, example) tuples
|
213 |
yield key, {
|
214 |
"speaker_id": data["speaker_id"],
|
215 |
-
"before_utterances": data["before_utterances"],
|
216 |
-
'combat_state_before': data['combat_state_before'],
|
217 |
-
'current_actor': data["current_actor"],
|
218 |
-
'commands_norm': data['commands_norm'],
|
219 |
-
'automation_results': data['automation_results'],
|
220 |
-
'caster_after': data['caster_after'],
|
221 |
-
'targets_after': data['targets_after'],
|
222 |
-
'combat_state_after': data['combat_state_after'],
|
223 |
-
'after_utterances': data['after_utterances'],
|
224 |
-
'utterance_history': data['utterance_history'],
|
225 |
-
'before_idxs': data['before_idxs'],
|
226 |
-
'before_state_idx': data['before_state_idx'],
|
227 |
-
'command_idxs': data['command_idxs'],
|
228 |
-
'after_state_idx': data['after_state_idx'],
|
229 |
-
'after_idxs': data['after_idxs'],
|
230 |
-
'embed_idxs': data['embed_idxs']
|
231 |
}
|
232 |
key+=1
|
|
|
73 |
# BUILDER_CONFIG_CLASS = MyBuilderConfig
|
74 |
|
75 |
# You will be able to load one or the other configurations in the following list with
|
|
|
|
|
76 |
BUILDER_CONFIGS = [
|
77 |
datasets.BuilderConfig(name="FIREBALL", version=VERSION),
|
78 |
]
|
|
|
189 |
url = _URLS[self.config.name]
|
190 |
#data_dir = dl_manager.download_and_extract(urls)
|
191 |
downloaded_files = dl_manager.download([files for root,dir,files in os.walk(url)][0])
|
192 |
+
print(downloaded_files)
|
193 |
return [
|
194 |
datasets.SplitGenerator(
|
195 |
name=datasets.Split.TRAIN,
|
|
|
211 |
# Yields examples as (key, example) tuples
|
212 |
yield key, {
|
213 |
"speaker_id": data["speaker_id"],
|
214 |
+
# "before_utterances": data["before_utterances"],
|
215 |
+
# 'combat_state_before': data['combat_state_before'],
|
216 |
+
# 'current_actor': data["current_actor"],
|
217 |
+
# 'commands_norm': data['commands_norm'],
|
218 |
+
# 'automation_results': data['automation_results'],
|
219 |
+
# 'caster_after': data['caster_after'],
|
220 |
+
# 'targets_after': data['targets_after'],
|
221 |
+
# 'combat_state_after': data['combat_state_after'],
|
222 |
+
# 'after_utterances': data['after_utterances'],
|
223 |
+
# 'utterance_history': data['utterance_history'],
|
224 |
+
# 'before_idxs': data['before_idxs'],
|
225 |
+
# 'before_state_idx': data['before_state_idx'],
|
226 |
+
# 'command_idxs': data['command_idxs'],
|
227 |
+
# 'after_state_idx': data['after_state_idx'],
|
228 |
+
# 'after_idxs': data['after_idxs'],
|
229 |
+
# 'embed_idxs': data['embed_idxs']
|
230 |
}
|
231 |
key+=1
|