lara-martin
commited on
Commit
•
3530a96
1
Parent(s):
ac1ebe0
Update FIREBALL.py
Browse files- FIREBALL.py +15 -15
FIREBALL.py
CHANGED
@@ -81,7 +81,7 @@ class Fireball(datasets.GeneratorBasedBuilder):
|
|
81 |
|
82 |
features = Features(
|
83 |
{
|
84 |
-
|
85 |
"before_utterances": datasets.Sequence(datasets.Value('string')),
|
86 |
'combat_state_before': datasets.Sequence(
|
87 |
{
|
@@ -97,18 +97,18 @@ class Fireball(datasets.GeneratorBasedBuilder):
|
|
97 |
'controller_id': datasets.Value(dtype='string')
|
98 |
}
|
99 |
), #list of dictionaries
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
'commands_norm': datasets.Value('string'),
|
113 |
'automation_results': datasets.Value('string'),
|
114 |
'caster_after': {
|
@@ -211,10 +211,10 @@ class Fireball(datasets.GeneratorBasedBuilder):
|
|
211 |
for data in f:
|
212 |
# Yields examples as (key, example) tuples
|
213 |
yield key, {
|
214 |
-
|
215 |
"before_utterances": data["before_utterances"],
|
216 |
'combat_state_before': data['combat_state_before'],
|
217 |
-
|
218 |
'commands_norm': data['commands_norm'],
|
219 |
'automation_results': data['automation_results'],
|
220 |
'caster_after': data['caster_after'],
|
|
|
81 |
|
82 |
features = Features(
|
83 |
{
|
84 |
+
"speaker_id": datasets.Value('int64'),
|
85 |
"before_utterances": datasets.Sequence(datasets.Value('string')),
|
86 |
'combat_state_before': datasets.Sequence(
|
87 |
{
|
|
|
97 |
'controller_id': datasets.Value(dtype='string')
|
98 |
}
|
99 |
), #list of dictionaries
|
100 |
+
'current_actor': {
|
101 |
+
'name': datasets.Value(dtype='string'),
|
102 |
+
'hp': datasets.Value(dtype='string'),
|
103 |
+
'class': datasets.Value(dtype='string'),
|
104 |
+
'race': datasets.Value(dtype='string'),
|
105 |
+
'attacks': datasets.Value(dtype='string'),
|
106 |
+
'spells': datasets.Value(dtype='string'),
|
107 |
+
'actions': datasets.Value(dtype='string'),
|
108 |
+
'effects': datasets.Value(dtype='string'),
|
109 |
+
'description': datasets.Value(dtype='string'),
|
110 |
+
'controller_id': datasets.Value(dtype='string')
|
111 |
+
}, #dictionary
|
112 |
'commands_norm': datasets.Value('string'),
|
113 |
'automation_results': datasets.Value('string'),
|
114 |
'caster_after': {
|
|
|
211 |
for data in f:
|
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'],
|