Datasets:
Update magpie.py
Browse files
magpie.py
CHANGED
@@ -129,5 +129,5 @@ class Magpie(datasets.GeneratorBasedBuilder):
|
|
129 |
fields[1] = fields[1].strip().split()
|
130 |
fields[-1] = fields[-1].strip().split()
|
131 |
yield id_, {
|
132 |
-
k:v
|
133 |
}
|
|
|
129 |
fields[1] = fields[1].strip().split()
|
130 |
fields[-1] = fields[-1].strip().split()
|
131 |
yield id_, {
|
132 |
+
k:v for k,v in zip(features, fields)
|
133 |
}
|