lara-martin commited on
Commit
1b36368
1 Parent(s): 8641cde

removing sequences

Browse files
Files changed (1) hide show
  1. FIREBALL.py +9 -12
FIREBALL.py CHANGED
@@ -72,8 +72,7 @@ class Fireball(datasets.GeneratorBasedBuilder):
72
  {
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,8 +83,8 @@ 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'),
91
  'hp': datasets.Value(dtype='string'),
@@ -112,8 +111,7 @@ class Fireball(datasets.GeneratorBasedBuilder):
112
  'description': 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,10 +122,9 @@ 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,8 +135,8 @@ 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')),
145
  'before_idxs': datasets.Sequence(datasets.Value('int16')),
 
72
  {
73
  "speaker_id": datasets.Value('int64'),
74
  "before_utterances": datasets.Sequence(datasets.Value('string')),
75
+ 'combat_state_before': [{
 
76
  'name': datasets.Value(dtype='string'),
77
  'hp': datasets.Value(dtype='string'),
78
  'class': datasets.Value(dtype='string'),
 
83
  'effects': datasets.Value(dtype='string'),
84
  'description': datasets.Value(dtype='string'),
85
  'controller_id': datasets.Value(dtype='string')
86
+
87
+ }], #list of dictionaries
88
  'current_actor': {
89
  'name': datasets.Value(dtype='string'),
90
  'hp': datasets.Value(dtype='string'),
 
111
  'description': datasets.Value(dtype='string'),
112
  'controller_id': datasets.Value(dtype='string')
113
  }, #dictionary
114
+ 'targets_after': [{
 
115
  'name': datasets.Value(dtype='string'),
116
  'hp': datasets.Value(dtype='string'),
117
  'class': datasets.Value(dtype='string'),
 
122
  'effects': datasets.Value(dtype='string'),
123
  'description': datasets.Value(dtype='string'),
124
  'controller_id': datasets.Value(dtype='string')
125
+
126
+ }], #list of dictionaries
127
+ 'combat_state_after': [{
 
128
  'name': datasets.Value(dtype='string'),
129
  'hp': datasets.Value(dtype='string'),
130
  'class': datasets.Value(dtype='string'),
 
135
  'effects': datasets.Value(dtype='string'),
136
  'description': datasets.Value(dtype='string'),
137
  'controller_id': datasets.Value(dtype='string')
138
+
139
+ }], #list of dictionaries
140
  'after_utterances': datasets.Sequence(datasets.Value('string')),
141
  'utterance_history': datasets.Sequence(datasets.Value('string')),
142
  'before_idxs': datasets.Sequence(datasets.Value('int16')),