remove deprecated parameter
Browse filesrequired to work with python 3.9
wit.py
CHANGED
|
@@ -75,7 +75,7 @@ class Wit(datasets.GeneratorBasedBuilder):
|
|
| 75 |
with open(filepath, "rb") as f:
|
| 76 |
for i, line in enumerate(f):
|
| 77 |
line = line.strip()
|
| 78 |
-
row_data = json.loads(line
|
| 79 |
for feature in row_data['wit_features']:
|
| 80 |
|
| 81 |
# If a feature is missing from feature dict, add it as None
|
|
|
|
| 75 |
with open(filepath, "rb") as f:
|
| 76 |
for i, line in enumerate(f):
|
| 77 |
line = line.strip()
|
| 78 |
+
row_data = json.loads(line)
|
| 79 |
for feature in row_data['wit_features']:
|
| 80 |
|
| 81 |
# If a feature is missing from feature dict, add it as None
|