ForzaJuve1
commited on
Commit
•
8770502
1
Parent(s):
70ccc95
Update Integration.py
Browse files- Integration.py +4 -4
Integration.py
CHANGED
@@ -556,12 +556,12 @@ class Euro2020Dataset(GeneratorBasedBuilder):
|
|
556 |
for id, row in enumerate(reader):
|
557 |
|
558 |
match_event_str = row["MatchEvent"]
|
559 |
-
match_event_replaced = match_event_str.replace("
|
560 |
-
match_event =
|
561 |
|
562 |
team_linup_str = row["TeamLineUps"]
|
563 |
-
team_linup_replaced = team_linup_str.replace("
|
564 |
-
team_linup =
|
565 |
|
566 |
yield id, {
|
567 |
"HomeTeamName": row["HomeTeamName"],
|
|
|
556 |
for id, row in enumerate(reader):
|
557 |
|
558 |
match_event_str = row["MatchEvent"]
|
559 |
+
match_event_replaced = match_event_str.replace("'", '"')
|
560 |
+
match_event = json.loads(match_event_replaced)
|
561 |
|
562 |
team_linup_str = row["TeamLineUps"]
|
563 |
+
team_linup_replaced = team_linup_str.replace("'", '"')
|
564 |
+
team_linup = json.loads(team_linup_replaced)
|
565 |
|
566 |
yield id, {
|
567 |
"HomeTeamName": row["HomeTeamName"],
|