lara-martin commited on
Commit
8641cde
·
verified ·
1 Parent(s): 93b2794

trying to fix list of dictionaries

Browse files
Files changed (1) hide show
  1. FIREBALL.py +6 -6
FIREBALL.py CHANGED
@@ -73,7 +73,7 @@ class Fireball(datasets.GeneratorBasedBuilder):
73
  "speaker_id": datasets.Value('int64'),
74
  "before_utterances": datasets.Sequence(datasets.Value('string')),
75
  'combat_state_before': datasets.Sequence(
76
- {
77
  'name': datasets.Value(dtype='string'),
78
  'hp': datasets.Value(dtype='string'),
79
  'class': datasets.Value(dtype='string'),
@@ -84,7 +84,7 @@ class Fireball(datasets.GeneratorBasedBuilder):
84
  'effects': datasets.Value(dtype='string'),
85
  'description': datasets.Value(dtype='string'),
86
  'controller_id': datasets.Value(dtype='string')
87
- }
88
  ), #list of dictionaries
89
  'current_actor': {
90
  'name': datasets.Value(dtype='string'),
@@ -113,7 +113,7 @@ class Fireball(datasets.GeneratorBasedBuilder):
113
  'controller_id': datasets.Value(dtype='string')
114
  }, #dictionary
115
  'targets_after': datasets.Sequence(
116
- {
117
  'name': datasets.Value(dtype='string'),
118
  'hp': datasets.Value(dtype='string'),
119
  'class': datasets.Value(dtype='string'),
@@ -124,10 +124,10 @@ class Fireball(datasets.GeneratorBasedBuilder):
124
  'effects': datasets.Value(dtype='string'),
125
  'description': datasets.Value(dtype='string'),
126
  'controller_id': datasets.Value(dtype='string')
127
- }
128
  ), #list of dictionaries
129
  'combat_state_after': datasets.Sequence(
130
- {
131
  'name': datasets.Value(dtype='string'),
132
  'hp': datasets.Value(dtype='string'),
133
  'class': datasets.Value(dtype='string'),
@@ -138,7 +138,7 @@ class Fireball(datasets.GeneratorBasedBuilder):
138
  'effects': datasets.Value(dtype='string'),
139
  'description': datasets.Value(dtype='string'),
140
  'controller_id': datasets.Value(dtype='string')
141
- }
142
  ), #list of dictionaries
143
  'after_utterances': datasets.Sequence(datasets.Value('string')),
144
  'utterance_history': datasets.Sequence(datasets.Value('string')),
 
73
  "speaker_id": datasets.Value('int64'),
74
  "before_utterances": datasets.Sequence(datasets.Value('string')),
75
  'combat_state_before': datasets.Sequence(
76
+ {[
77
  'name': datasets.Value(dtype='string'),
78
  'hp': datasets.Value(dtype='string'),
79
  'class': datasets.Value(dtype='string'),
 
84
  'effects': datasets.Value(dtype='string'),
85
  'description': datasets.Value(dtype='string'),
86
  'controller_id': datasets.Value(dtype='string')
87
+ ]}
88
  ), #list of dictionaries
89
  'current_actor': {
90
  'name': datasets.Value(dtype='string'),
 
113
  'controller_id': datasets.Value(dtype='string')
114
  }, #dictionary
115
  'targets_after': datasets.Sequence(
116
+ {[
117
  'name': datasets.Value(dtype='string'),
118
  'hp': datasets.Value(dtype='string'),
119
  'class': datasets.Value(dtype='string'),
 
124
  'effects': datasets.Value(dtype='string'),
125
  'description': datasets.Value(dtype='string'),
126
  'controller_id': datasets.Value(dtype='string')
127
+ ]}
128
  ), #list of dictionaries
129
  'combat_state_after': datasets.Sequence(
130
+ {[
131
  'name': datasets.Value(dtype='string'),
132
  'hp': datasets.Value(dtype='string'),
133
  'class': datasets.Value(dtype='string'),
 
138
  'effects': datasets.Value(dtype='string'),
139
  'description': datasets.Value(dtype='string'),
140
  'controller_id': datasets.Value(dtype='string')
141
+ ]}
142
  ), #list of dictionaries
143
  'after_utterances': datasets.Sequence(datasets.Value('string')),
144
  'utterance_history': datasets.Sequence(datasets.Value('string')),