Datasets:
ratishsp
commited on
Commit
•
c8abf86
1
Parent(s):
da339a4
support for handling N/A in player name
Browse files
RotoWire_English-German.py
CHANGED
@@ -384,6 +384,8 @@ class RotowireEnglishGerman(datasets.GeneratorBasedBuilder):
|
|
384 |
home_player_seq, vis_player_seq = self.sort_player_and_points(entry)
|
385 |
desc = []
|
386 |
for player_name, _ in home_player_seq + vis_player_seq:
|
|
|
|
|
387 |
result = self.get_result_player(player_name, entry["home_city"] + " " + entry["home_line"]["TEAM-NAME"],
|
388 |
entry["vis_city"] + " " + entry["vis_line"]["TEAM-NAME"], home_won,
|
389 |
player_team_map)
|
|
|
384 |
home_player_seq, vis_player_seq = self.sort_player_and_points(entry)
|
385 |
desc = []
|
386 |
for player_name, _ in home_player_seq + vis_player_seq:
|
387 |
+
if player_name == "N/A":
|
388 |
+
continue
|
389 |
result = self.get_result_player(player_name, entry["home_city"] + " " + entry["home_line"]["TEAM-NAME"],
|
390 |
entry["vis_city"] + " " + entry["vis_line"]["TEAM-NAME"], home_won,
|
391 |
player_team_map)
|