ashishu007 commited on
Commit
39a4bbb
1 Parent(s): 6a840c0

Update sportsett_basketball.py

Browse files

handled empty value in instances with no next games

Files changed (1) hide show
  1. sportsett_basketball.py +1 -1
sportsett_basketball.py CHANGED
@@ -677,7 +677,7 @@ class SportsettBasketball(datasets.GeneratorBasedBuilder):
677
  home_line, vis_line, home_box_score, vis_box_score = self.get_box_and_line_scores(entry)
678
  home_next, vis_next = self.get_next_game_info(entry)
679
  linearized_input = f"<GAME> {game_data} <HOME> {home_line} <NEXT-HOME> {home_next} <VIS> {vis_line} <VIS-NEXT> {vis_next} {home_box_score} {vis_box_score}"
680
- return linearized_input.replace(" ", "")
681
 
682
  def _generate_examples(
683
  self, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
 
677
  home_line, vis_line, home_box_score, vis_box_score = self.get_box_and_line_scores(entry)
678
  home_next, vis_next = self.get_next_game_info(entry)
679
  linearized_input = f"<GAME> {game_data} <HOME> {home_line} <NEXT-HOME> {home_next} <VIS> {vis_line} <VIS-NEXT> {vis_next} {home_box_score} {vis_box_score}"
680
+ return linearized_input
681
 
682
  def _generate_examples(
683
  self, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`