ForzaJuve1
commited on
Commit
•
b63b901
1
Parent(s):
94fb71d
Update Integration.py
Browse files- Integration.py +12 -12
Integration.py
CHANGED
@@ -570,14 +570,14 @@ class Euro2020Dataset(GeneratorBasedBuilder):
|
|
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"],
|
@@ -606,9 +606,9 @@ class Euro2020Dataset(GeneratorBasedBuilder):
|
|
606 |
"Temperature": row["Temperature"],
|
607 |
"WindSpeed": row["WindSpeed"],
|
608 |
"MatchEvent": match_event_processed,
|
609 |
-
"TeamLineUps":
|
610 |
-
"TeamStats":
|
611 |
-
"PlayerStats":
|
612 |
-
"PlayerPreMatchInfo":
|
613 |
}
|
614 |
|
|
|
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"],
|
|
|
606 |
"Temperature": row["Temperature"],
|
607 |
"WindSpeed": row["WindSpeed"],
|
608 |
"MatchEvent": match_event_processed,
|
609 |
+
"TeamLineUps": row["TeamLineUps"],
|
610 |
+
"TeamStats": row["TeamStats"],
|
611 |
+
"PlayerStats": row["PlayerStats"],
|
612 |
+
"PlayerPreMatchInfo": row["PlayerPreMatchInfo"],
|
613 |
}
|
614 |
|