ashishu007 commited on
Commit
99bd351
1 Parent(s): 2467148

updated linearized input

Browse files
Files changed (1) hide show
  1. sportsett_basketball.py +1 -2
sportsett_basketball.py CHANGED
@@ -597,8 +597,7 @@ class SportsettBasketball(datasets.GeneratorBasedBuilder):
597
  bs = entry['teams'][type.lower()]['box_score']
598
  team_name = f"{entry['teams'][type.lower()]['place']} {entry['teams'][type.lower()]['name']}"
599
  sorted_idx = self.sort_players_by_pts(entry, type)
600
- won_or_lost = 'WON' if winner == type else 'LOST'
601
- player_lines = [self.get_one_player_data(bs[idx], team_name, f'{won_or_lost}-{rank}') for rank, idx in enumerate(sorted_idx)]
602
  return ' '.join(player_lines)
603
 
604
  def get_team_line(self, entry, type='HOME', winner='HOME'):
 
597
  bs = entry['teams'][type.lower()]['box_score']
598
  team_name = f"{entry['teams'][type.lower()]['place']} {entry['teams'][type.lower()]['name']}"
599
  sorted_idx = self.sort_players_by_pts(entry, type)
600
+ player_lines = [self.get_one_player_data(bs[idx], team_name, f'{type}-{rank}') for rank, idx in enumerate(sorted_idx)]
 
601
  return ' '.join(player_lines)
602
 
603
  def get_team_line(self, entry, type='HOME', winner='HOME'):