ForzaJuve1
commited on
Commit
•
94fb71d
1
Parent(s):
7dd1e9f
Update Integration.py
Browse files- Integration.py +14 -4
Integration.py
CHANGED
@@ -569,6 +569,16 @@ class Euro2020Dataset(GeneratorBasedBuilder):
|
|
569 |
"4-Extra Time Second Half": match_event.get("4-Extra Time Second Half", []),
|
570 |
"5-Penalty Shootout": match_event.get("5-Penalty Shootout", []),
|
571 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
572 |
yield id, {
|
573 |
"HomeTeamName": row["HomeTeamName"],
|
574 |
"AwayTeamName": row["AwayTeamName"],
|
@@ -596,9 +606,9 @@ class Euro2020Dataset(GeneratorBasedBuilder):
|
|
596 |
"Temperature": row["Temperature"],
|
597 |
"WindSpeed": row["WindSpeed"],
|
598 |
"MatchEvent": match_event_processed,
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
}
|
604 |
|
|
|
569 |
"4-Extra Time Second Half": match_event.get("4-Extra Time Second Half", []),
|
570 |
"5-Penalty Shootout": match_event.get("5-Penalty Shootout", []),
|
571 |
}
|
572 |
+
|
573 |
+
team_lineup_str = row["TeamLineUps"]
|
574 |
+
team_lineup = ast.literal_eval(team_lineup_str)
|
575 |
+
team_stats_str = row["TeamStats"]
|
576 |
+
team_stats = ast.literal_eval(team_stats_str)
|
577 |
+
player_stats_str = row["PlayerStats"]
|
578 |
+
player_stats = ast.literal_eval(player_stats_str)
|
579 |
+
pre_match_info_str = row["PlayerPreMatchInfo"]
|
580 |
+
pre_match_info = ast.literal_eval(pre_match_info_str)
|
581 |
+
|
582 |
yield id, {
|
583 |
"HomeTeamName": row["HomeTeamName"],
|
584 |
"AwayTeamName": row["AwayTeamName"],
|
|
|
606 |
"Temperature": row["Temperature"],
|
607 |
"WindSpeed": row["WindSpeed"],
|
608 |
"MatchEvent": match_event_processed,
|
609 |
+
"TeamLineUps": team_lineup,
|
610 |
+
"TeamStats": team_stats,
|
611 |
+
"PlayerStats": player_stats,
|
612 |
+
"PlayerPreMatchInfo": pre_match_info,
|
613 |
}
|
614 |
|