ForzaJuve1 commited on
Commit
75aaa26
1 Parent(s): ac9dfc8

Update Integration.py

Browse files
Files changed (1) hide show
  1. Integration.py +3 -3
Integration.py CHANGED
@@ -4,7 +4,7 @@ import tensorflow as tf
4
  import csv
5
  import sys
6
  import ast
7
- import json
8
 
9
  class Euro2020Dataset(GeneratorBasedBuilder):
10
  VERSION = "1.0.0"
@@ -582,7 +582,7 @@ class Euro2020Dataset(GeneratorBasedBuilder):
582
  "AwayTeamLineUp": team_lineup.get("AwayTeamLineUp"),
583
  }
584
 
585
- team_linup = json.loads(team_lineup_str)
586
 
587
  #team_stats_str = row["TeamStats"]
588
  #team_stats = json.loads(team_stats_str)
@@ -618,7 +618,7 @@ class Euro2020Dataset(GeneratorBasedBuilder):
618
  "AwayTeamPlayerInfo": pre_match_info.get("AwayTeamPlayerInfo"),
619
  }
620
 
621
- ppi = json.loads(pre_match_info_str)
622
 
623
 
624
  yield id, {
 
4
  import csv
5
  import sys
6
  import ast
7
+ import demjson
8
 
9
  class Euro2020Dataset(GeneratorBasedBuilder):
10
  VERSION = "1.0.0"
 
582
  "AwayTeamLineUp": team_lineup.get("AwayTeamLineUp"),
583
  }
584
 
585
+ team_linup = demjson.decode(team_lineup_str)
586
 
587
  #team_stats_str = row["TeamStats"]
588
  #team_stats = json.loads(team_stats_str)
 
618
  "AwayTeamPlayerInfo": pre_match_info.get("AwayTeamPlayerInfo"),
619
  }
620
 
621
+ ppi = demjson.decode(pre_match_info_str)
622
 
623
 
624
  yield id, {