ForzaJuve1 commited on
Commit
e77c0bd
1 Parent(s): 531b70e

Update Integration.py

Browse files
Files changed (1) hide show
  1. Integration.py +2 -0
Integration.py CHANGED
@@ -557,6 +557,8 @@ class Euro2020Dataset(GeneratorBasedBuilder):
557
  for id, row in enumerate(reader):
558
 
559
  match_event_str = row["MatchEvent"]
 
 
560
  #match_event_replaced = match_event_str.replace("'", '"')
561
  #match_event_replaced = match_event_str.replace(": nan: ", ": None: ")
562
  match_event = yaml.safe_load(match_event_str)
 
557
  for id, row in enumerate(reader):
558
 
559
  match_event_str = row["MatchEvent"]
560
+ match_event_str = match_event_str.replace("Incident=NoPenalty,Reason=HandBall,Status=SilentCheck",
561
+ "Incident: NoPenalty,Reason: HandBall,Status: SilentCheck"
562
  #match_event_replaced = match_event_str.replace("'", '"')
563
  #match_event_replaced = match_event_str.replace(": nan: ", ": None: ")
564
  match_event = yaml.safe_load(match_event_str)