Sebastian Gehrmann commited on
Commit
7cb1f42
2 Parent(s): 8d23477 f17ed45
Files changed (2) hide show
  1. dataset_infos.json +1 -1
  2. sportsett_basketball.py +119 -3
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"default": {"description": "SportSett:Basketball dataset for Data-to-Text Generation contains NBA games stats aligned with their human written summaries.\n", "citation": "@inproceedings{thomson-etal-2020-sportsett,\n title = \"{S}port{S}ett:Basketball - A robust and maintainable data-set for Natural Language Generation\",\n author = \"Thomson, Craig and\n Reiter, Ehud and\n Sripada, Somayajulu\",\n booktitle = \"Proceedings of the Workshop on Intelligent Information Processing and Natural Language Generation\",\n month = sep,\n year = \"2020\",\n address = \"Santiago de Compostela, Spain\",\n publisher = \"Association for Computational Lingustics\",\n url = \"https://aclanthology.org/2020.intellang-1.4\",\n pages = \"32--40\",\n}\n", "homepage": "https://github.com/nlgcat/sport_sett_basketball", "license": "", "features": {"sportsett_id": {"dtype": "string", "id": null, "_type": "Value"}, "gem_id": {"dtype": "string", "id": null, "_type": "Value"}, "game": {"day": {"dtype": "string", "id": null, "_type": "Value"}, "month": {"dtype": "string", "id": null, "_type": "Value"}, "year": {"dtype": "string", "id": null, "_type": "Value"}, "dayname": {"dtype": "string", "id": null, "_type": "Value"}, "season": {"dtype": "string", "id": null, "_type": "Value"}, "stadium": {"dtype": "string", "id": null, "_type": "Value"}, "city": {"dtype": "string", "id": null, "_type": "Value"}, "state": {"dtype": "string", "id": null, "_type": "Value"}, "attendance": {"dtype": "string", "id": null, "_type": "Value"}, "capacity": {"dtype": "string", "id": null, "_type": "Value"}, "game_id": {"dtype": "string", "id": null, "_type": "Value"}}, "teams": {"home": {"name": {"dtype": "string", "id": null, "_type": "Value"}, "place": {"dtype": "string", "id": null, "_type": "Value"}, "conference": {"dtype": "string", "id": null, "_type": "Value"}, "division": {"dtype": "string", "id": null, "_type": "Value"}, "wins": {"dtype": "string", "id": null, "_type": "Value"}, "losses": {"dtype": "string", "id": null, "_type": "Value"}, "conference_standing": {"dtype": "int32", "id": null, "_type": "Value"}, "game_number": {"dtype": "string", "id": null, "_type": "Value"}, "previous_game_id": {"dtype": "string", "id": null, "_type": "Value"}, "next_game_id": {"dtype": "string", "id": null, "_type": "Value"}, "line_score": {"game": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PF": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "H1": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "H2": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q1": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q2": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q3": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q4": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "OT": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}}, "box_score": [{"first_name": {"dtype": "string", "id": null, "_type": "Value"}, "last_name": {"dtype": "string", "id": null, "_type": "Value"}, "name": {"dtype": "string", "id": null, "_type": "Value"}, "starter": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PF": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "+/-": {"dtype": "string", "id": null, "_type": "Value"}, "DOUBLE": {"dtype": "string", "id": null, "_type": "Value"}}], "next_game": {"day": {"dtype": "string", "id": null, "_type": "Value"}, "month": {"dtype": "string", "id": null, "_type": "Value"}, "year": {"dtype": "string", "id": null, "_type": "Value"}, "dayname": {"dtype": "string", "id": null, "_type": "Value"}, "stadium": {"dtype": "string", "id": null, "_type": "Value"}, "city": {"dtype": "string", "id": null, "_type": "Value"}, "opponent_name": {"dtype": "string", "id": null, "_type": "Value"}, "opponent_place": {"dtype": "string", "id": null, "_type": "Value"}, "is_home": {"dtype": "string", "id": null, "_type": "Value"}}}, "vis": {"name": {"dtype": "string", "id": null, "_type": "Value"}, "place": {"dtype": "string", "id": null, "_type": "Value"}, "conference": {"dtype": "string", "id": null, "_type": "Value"}, "division": {"dtype": "string", "id": null, "_type": "Value"}, "wins": {"dtype": "string", "id": null, "_type": "Value"}, "losses": {"dtype": "string", "id": null, "_type": "Value"}, "conference_standing": {"dtype": "int32", "id": null, "_type": "Value"}, "game_number": {"dtype": "string", "id": null, "_type": "Value"}, "previous_game_id": {"dtype": "string", "id": null, "_type": "Value"}, "next_game_id": {"dtype": "string", "id": null, "_type": "Value"}, "line_score": {"game": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PF": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "H1": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "H2": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q1": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q2": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q3": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q4": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "OT": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}}, "box_score": [{"first_name": {"dtype": "string", "id": null, "_type": "Value"}, "last_name": {"dtype": "string", "id": null, "_type": "Value"}, "name": {"dtype": "string", "id": null, "_type": "Value"}, "starter": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PF": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "+/-": {"dtype": "string", "id": null, "_type": "Value"}, "DOUBLE": {"dtype": "string", "id": null, "_type": "Value"}}], "next_game": {"day": {"dtype": "string", "id": null, "_type": "Value"}, "month": {"dtype": "string", "id": null, "_type": "Value"}, "year": {"dtype": "string", "id": null, "_type": "Value"}, "dayname": {"dtype": "string", "id": null, "_type": "Value"}, "stadium": {"dtype": "string", "id": null, "_type": "Value"}, "city": {"dtype": "string", "id": null, "_type": "Value"}, "opponent_name": {"dtype": "string", "id": null, "_type": "Value"}, "opponent_place": {"dtype": "string", "id": null, "_type": "Value"}, "is_home": {"dtype": "string", "id": null, "_type": "Value"}}}}, "summaries": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "target": {"dtype": "string", "id": null, "_type": "Value"}, "references": [{"dtype": "string", "id": null, "_type": "Value"}]}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "sport_sett_basketball", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 44968895, "num_examples": 3690, "dataset_name": "sport_sett_basketball"}, "test": {"name": "test", "num_bytes": 13737545, "num_examples": 1230, "dataset_name": "sport_sett_basketball"}, "validation": {"name": "validation", "num_bytes": 14144950, "num_examples": 1230, "dataset_name": "sport_sett_basketball"}}, "download_checksums": {"train.jsonl": {"num_bytes": 62442413, "checksum": "7f36933482f385000d5dedcf8f432349aa486eee1229c6aa28de2c000d2890ec"}, "validation.jsonl": {"num_bytes": 20228725, "checksum": "39e6401457f90e58e7237b2392b6f3fb1155f1b068d542cd112602200d539973"}, "test.jsonl": {"num_bytes": 20033885, "checksum": "79056913fc9e0e49b428384e64c2bbc90b450fd94316d451e17c3d3cd32dbe3a"}}, "download_size": 102705023, "post_processing_size": null, "dataset_size": 72851390, "size_in_bytes": 175556413}}
 
1
+ {"default": {"description": "SportSett:Basketball dataset for Data-to-Text Generation contains NBA games stats aligned with their human written summaries.\n", "citation": "@inproceedings{thomson-etal-2020-sportsett,\n title = \"{S}port{S}ett:Basketball - A robust and maintainable data-set for Natural Language Generation\",\n author = \"Thomson, Craig and\n Reiter, Ehud and\n Sripada, Somayajulu\",\n booktitle = \"Proceedings of the Workshop on Intelligent Information Processing and Natural Language Generation\",\n month = sep,\n year = \"2020\",\n address = \"Santiago de Compostela, Spain\",\n publisher = \"Association for Computational Lingustics\",\n url = \"https://aclanthology.org/2020.intellang-1.4\",\n pages = \"32--40\",\n}\n", "homepage": "https://github.com/nlgcat/sport_sett_basketball", "license": "", "features": {"sportsett_id": {"dtype": "string", "id": null, "_type": "Value"}, "gem_id": {"dtype": "string", "id": null, "_type": "Value"}, "game": {"day": {"dtype": "string", "id": null, "_type": "Value"}, "month": {"dtype": "string", "id": null, "_type": "Value"}, "year": {"dtype": "string", "id": null, "_type": "Value"}, "dayname": {"dtype": "string", "id": null, "_type": "Value"}, "season": {"dtype": "string", "id": null, "_type": "Value"}, "stadium": {"dtype": "string", "id": null, "_type": "Value"}, "city": {"dtype": "string", "id": null, "_type": "Value"}, "state": {"dtype": "string", "id": null, "_type": "Value"}, "attendance": {"dtype": "string", "id": null, "_type": "Value"}, "capacity": {"dtype": "string", "id": null, "_type": "Value"}, "game_id": {"dtype": "string", "id": null, "_type": "Value"}}, "teams": {"home": {"name": {"dtype": "string", "id": null, "_type": "Value"}, "place": {"dtype": "string", "id": null, "_type": "Value"}, "conference": {"dtype": "string", "id": null, "_type": "Value"}, "division": {"dtype": "string", "id": null, "_type": "Value"}, "wins": {"dtype": "string", "id": null, "_type": "Value"}, "losses": {"dtype": "string", "id": null, "_type": "Value"}, "conference_standing": {"dtype": "int32", "id": null, "_type": "Value"}, "game_number": {"dtype": "string", "id": null, "_type": "Value"}, "previous_game_id": {"dtype": "string", "id": null, "_type": "Value"}, "next_game_id": {"dtype": "string", "id": null, "_type": "Value"}, "line_score": {"game": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PF": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "H1": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "H2": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q1": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q2": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q3": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q4": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "OT": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}}, "box_score": [{"first_name": {"dtype": "string", "id": null, "_type": "Value"}, "last_name": {"dtype": "string", "id": null, "_type": "Value"}, "name": {"dtype": "string", "id": null, "_type": "Value"}, "starter": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PF": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "+/-": {"dtype": "string", "id": null, "_type": "Value"}, "DOUBLE": {"dtype": "string", "id": null, "_type": "Value"}}], "next_game": {"day": {"dtype": "string", "id": null, "_type": "Value"}, "month": {"dtype": "string", "id": null, "_type": "Value"}, "year": {"dtype": "string", "id": null, "_type": "Value"}, "dayname": {"dtype": "string", "id": null, "_type": "Value"}, "stadium": {"dtype": "string", "id": null, "_type": "Value"}, "city": {"dtype": "string", "id": null, "_type": "Value"}, "opponent_name": {"dtype": "string", "id": null, "_type": "Value"}, "opponent_place": {"dtype": "string", "id": null, "_type": "Value"}, "is_home": {"dtype": "string", "id": null, "_type": "Value"}}}, "vis": {"name": {"dtype": "string", "id": null, "_type": "Value"}, "place": {"dtype": "string", "id": null, "_type": "Value"}, "conference": {"dtype": "string", "id": null, "_type": "Value"}, "division": {"dtype": "string", "id": null, "_type": "Value"}, "wins": {"dtype": "string", "id": null, "_type": "Value"}, "losses": {"dtype": "string", "id": null, "_type": "Value"}, "conference_standing": {"dtype": "int32", "id": null, "_type": "Value"}, "game_number": {"dtype": "string", "id": null, "_type": "Value"}, "previous_game_id": {"dtype": "string", "id": null, "_type": "Value"}, "next_game_id": {"dtype": "string", "id": null, "_type": "Value"}, "line_score": {"game": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PF": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "H1": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "H2": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q1": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q2": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q3": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "Q4": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}, "OT": {"FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}}}, "box_score": [{"first_name": {"dtype": "string", "id": null, "_type": "Value"}, "last_name": {"dtype": "string", "id": null, "_type": "Value"}, "name": {"dtype": "string", "id": null, "_type": "Value"}, "starter": {"dtype": "string", "id": null, "_type": "Value"}, "MIN": {"dtype": "string", "id": null, "_type": "Value"}, "FGM": {"dtype": "string", "id": null, "_type": "Value"}, "FGA": {"dtype": "string", "id": null, "_type": "Value"}, "FG_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FG3M": {"dtype": "string", "id": null, "_type": "Value"}, "FG3A": {"dtype": "string", "id": null, "_type": "Value"}, "FG3_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "FTM": {"dtype": "string", "id": null, "_type": "Value"}, "FTA": {"dtype": "string", "id": null, "_type": "Value"}, "FT_PCT": {"dtype": "string", "id": null, "_type": "Value"}, "OREB": {"dtype": "string", "id": null, "_type": "Value"}, "DREB": {"dtype": "string", "id": null, "_type": "Value"}, "TREB": {"dtype": "string", "id": null, "_type": "Value"}, "AST": {"dtype": "string", "id": null, "_type": "Value"}, "STL": {"dtype": "string", "id": null, "_type": "Value"}, "BLK": {"dtype": "string", "id": null, "_type": "Value"}, "TOV": {"dtype": "string", "id": null, "_type": "Value"}, "PF": {"dtype": "string", "id": null, "_type": "Value"}, "PTS": {"dtype": "string", "id": null, "_type": "Value"}, "+/-": {"dtype": "string", "id": null, "_type": "Value"}, "DOUBLE": {"dtype": "string", "id": null, "_type": "Value"}}], "next_game": {"day": {"dtype": "string", "id": null, "_type": "Value"}, "month": {"dtype": "string", "id": null, "_type": "Value"}, "year": {"dtype": "string", "id": null, "_type": "Value"}, "dayname": {"dtype": "string", "id": null, "_type": "Value"}, "stadium": {"dtype": "string", "id": null, "_type": "Value"}, "city": {"dtype": "string", "id": null, "_type": "Value"}, "opponent_name": {"dtype": "string", "id": null, "_type": "Value"}, "opponent_place": {"dtype": "string", "id": null, "_type": "Value"}, "is_home": {"dtype": "string", "id": null, "_type": "Value"}}}}, "summaries": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "target": {"dtype": "string", "id": null, "_type": "Value"}, "references": [{"dtype": "string", "id": null, "_type": "Value"}], "linearized_input": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "sportsett_basketball", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 67332482, "num_examples": 3690, "dataset_name": "sportsett_basketball"}, "test": {"name": "test", "num_bytes": 21058937, "num_examples": 1230, "dataset_name": "sportsett_basketball"}, "validation": {"name": "validation", "num_bytes": 21503139, "num_examples": 1230, "dataset_name": "sportsett_basketball"}}, "download_checksums": {"train.jsonl": {"num_bytes": 62442413, "checksum": "7f36933482f385000d5dedcf8f432349aa486eee1229c6aa28de2c000d2890ec"}, "validation.jsonl": {"num_bytes": 20228725, "checksum": "39e6401457f90e58e7237b2392b6f3fb1155f1b068d542cd112602200d539973"}, "test.jsonl": {"num_bytes": 20033885, "checksum": "79056913fc9e0e49b428384e64c2bbc90b450fd94316d451e17c3d3cd32dbe3a"}}, "download_size": 102705023, "post_processing_size": null, "dataset_size": 109894558, "size_in_bytes": 212599581}}
sportsett_basketball.py CHANGED
@@ -17,7 +17,9 @@
17
 
18
  import csv
19
  import json
 
20
  import re
 
21
 
22
  import datasets
23
 
@@ -79,7 +81,7 @@ def detokenize(text):
79
  return step6.strip()
80
 
81
  # TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
82
- class SportSettBasketball(datasets.GeneratorBasedBuilder):
83
  """SportSett:Basketball datatset for Data-to-Text Generation."""
84
 
85
  VERSION = datasets.Version("1.1.0")
@@ -536,7 +538,8 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
536
  },
537
  "summaries": datasets.Sequence(datasets.Value("string")),
538
  "target": datasets.Value("string"),
539
- "references": [datasets.Value("string")]
 
540
  }
541
  )
542
  return datasets.DatasetInfo(
@@ -584,6 +587,118 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
584
  ),
585
  ]
586
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
587
  def _generate_examples(
588
  self, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
589
  ):
@@ -602,5 +717,6 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
602
  "teams": data["teams"],
603
  "summaries": data["summaries"],
604
  "target": detokenize(data["summaries"][0]),
605
- "references": [detokenize(s) for s in data["summaries"]]
 
606
  }
 
17
 
18
  import csv
19
  import json
20
+ import os
21
  import re
22
+ from readline import parse_and_bind
23
 
24
  import datasets
25
 
 
81
  return step6.strip()
82
 
83
  # TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
84
+ class SportsettBasketball(datasets.GeneratorBasedBuilder):
85
  """SportSett:Basketball datatset for Data-to-Text Generation."""
86
 
87
  VERSION = datasets.Version("1.1.0")
 
538
  },
539
  "summaries": datasets.Sequence(datasets.Value("string")),
540
  "target": datasets.Value("string"),
541
+ "references": [datasets.Value("string")],
542
+ "linearized_input": datasets.Value("string")
543
  }
544
  )
545
  return datasets.DatasetInfo(
 
587
  ),
588
  ]
589
 
590
+ def tokenize_initials(self, value):
591
+ attrib_value = re.sub(r"(\w)\.(\w)\.", r"\g<1>. \g<2>.", value)
592
+ return attrib_value
593
+
594
+ def sort_players_by_pts(self, entry, type='HOME'):
595
+ """
596
+ Sort players by points and return the indices sorted by points
597
+ bs --> [{'pts': 10}, {'pts': 30}, {'pts': 35}, {'pts': 5}]
598
+ return --> [2, 1, 0, 3]
599
+ """
600
+ all_pts = [int(item['PTS']) for item in entry['teams'][type.lower()]['box_score']]
601
+ all_pts1 = [[item, idx] for idx, item in enumerate(all_pts)]
602
+ all_pts1.sort()
603
+ all_pts1.reverse()
604
+ return [item[1] for item in all_pts1]
605
+
606
+ def get_one_player_data(self, player_stats, team_name, rank):
607
+ """
608
+ player_line = "<PLAYER> %s <TEAM> %s <POS> %s <RANK> %s <MIN> %d <PTS> %d <FG> %d %d %d <FG3> %d %d %d \
609
+ <FT> %d %d %d <REB> %d <AST> %d <STL> %s <BLK> %d <DREB> %d <OREB> %d <TO> %d"
610
+ """
611
+ pos = f'STARTER YES' if player_stats['starter'] == True else f'STARTER NO'
612
+ player_min = int(player_stats['MIN'])
613
+ rank = rank if player_min > 0 else f"{rank.split('-')[0]}-DIDNTPLAY"
614
+ player_line = f"<PLAYER> {self.tokenize_initials(player_stats['name'])} <TEAM> {team_name} <POS> {pos} <RANK> {rank}"
615
+ player_line = f"{player_line} <MIN> {player_stats['MIN']} <PTS> {player_stats['PTS']} <FG> {player_stats['FGM']} {player_stats['FGA']} {player_stats['FG_PCT']}"
616
+ player_line = f"{player_line} <FG3> {player_stats['FG3M']} {player_stats['FG3A']} {player_stats['FG3_PCT']}"
617
+ player_line = f"{player_line} <FT> {player_stats['FTM']} {player_stats['FTA']} {player_stats['FT_PCT']}"
618
+ player_line = f"{player_line} <REB> {player_stats['TREB']} <AST> {player_stats['AST']} <STL> {player_stats['STL']}"
619
+ player_line = f"{player_line} <BLK> {player_stats['BLK']} <DREB> {player_stats['DREB']} <OREB> {player_stats['OREB']} <TO> {player_stats['TOV']}"
620
+ player_line = f"{player_line} <DOUBLE> {player_stats['DOUBLE']}"
621
+ return player_line
622
+
623
+ def get_box_score(self, entry, type='HOME'):
624
+ bs = entry['teams'][type.lower()]['box_score']
625
+ team_name = f"{entry['teams'][type.lower()]['place']} {entry['teams'][type.lower()]['name']}"
626
+ sorted_idx = self.sort_players_by_pts(entry, type)
627
+ player_lines = [self.get_one_player_data(bs[idx], team_name, f'{type}-{rank}') for rank, idx in enumerate(sorted_idx)]
628
+ return ' '.join(player_lines)
629
+
630
+ def get_team_line(self, entry, type='HOME', winner='HOME'):
631
+ """
632
+ team_line = "%s <TEAM> %s <CITY> %s <TEAM-RESULT> %s <TEAM-PTS> %d <WINS-LOSSES> %d %d <QTRS> %d %d %d %d \
633
+ <TEAM-AST> %d <3PT> %d <TEAM-FG> %d <TEAM-FT> %d <TEAM-REB> %d <TEAM-TO> %d"
634
+ """
635
+ line_score = entry['teams'][type.lower()]['line_score']['game']
636
+ team_line = f"<TEAM> {entry['teams'][type.lower()]['name']} <CITY> {entry['teams'][type.lower()]['place']}"
637
+ if winner == type:
638
+ team_line = f"{team_line} <TEAM-RESULT> won"
639
+ else:
640
+ team_line = f"{team_line} <TEAM-RESULT> lost"
641
+ team_line = f"{team_line} <TEAM-PTS> {line_score['PTS']} <WINS-LOSSES> {entry['teams'][type.lower()]['wins']} {entry['teams'][type.lower()]['losses']}"
642
+ team_line = f"{team_line} <QTRS> {entry['teams'][type.lower()]['line_score']['Q1']['PTS']} {entry['teams'][type.lower()]['line_score']['Q2']['PTS']}"
643
+ team_line = f"{team_line} {entry['teams'][type.lower()]['line_score']['Q3']['PTS']} {entry['teams'][type.lower()]['line_score']['Q4']['PTS']}"
644
+ team_line = f"{team_line} <TEAM-AST> {line_score['AST']} <3PT> {line_score['FG3M']} <TEAM-FG> {line_score['FGM']} <TEAM-FT> {line_score['FTM']}"
645
+ team_line = f"{team_line} <TEAM-REB> {line_score['TREB']} <TEAM-TO> {line_score['TOV']}"
646
+ return team_line
647
+
648
+ def get_box_and_line_scores(self, entry):
649
+ """Get line- & box- scores data for a single game"""
650
+
651
+ home_team_pts = entry['teams']['home']['line_score']['game']['PTS']
652
+ vis_team_pts = entry['teams']['home']['line_score']['game']['PTS']
653
+ winner = 'HOME' if int(home_team_pts) > int(vis_team_pts) else 'VIS'
654
+
655
+ home_team_line = self.get_team_line(entry, type='HOME', winner=winner)
656
+ vis_team_line = self.get_team_line(entry, type='VIS', winner=winner)
657
+
658
+ home_box_score = self.get_box_score(entry, type='HOME')
659
+ vis_box_score = self.get_box_score(entry, type='VIS')
660
+
661
+ return home_team_line, vis_team_line, home_box_score, vis_box_score
662
+
663
+ def get_game_data(self, entry):
664
+ """Get game data for a single game"""
665
+ game_date = f"{entry['day']} {entry['month']} {entry['year']}"
666
+ game_day = entry['dayname']
667
+ game_stadium = entry['stadium']
668
+ game_city = entry['city']
669
+ return f"<DATE> {game_date} <DAY> {game_day} <STADIUM> {game_stadium} <CITY> {game_city}"
670
+
671
+ def get_next_game_data_of_a_team(self, entry):
672
+ """
673
+ next_game_line = "<NEXT-GAME-DATE> %s <NEXT-GAME-DAY> %s <NEXT-GAME-STADIUM> %s <NEXT-GAME-CITY> %s"
674
+ """
675
+ next_game_date = f"{entry['day']} {entry['month']} {entry['year']}"
676
+ next_game_is_home = 'yes' if entry['is_home'] == 'True' else 'no'
677
+ next_game_line = f"<NEXT-DATE> {next_game_date} <NEXT-DAY> {entry['dayname']}"
678
+ next_game_line = f"{next_game_line} <NEXT-STADIUM> {entry['stadium']} <NEXT-CITY> {entry['city']}"
679
+ next_game_line = f"{next_game_line} <NEXT-OPPONENT-PLACE> {entry['opponent_place']} <NEXT-OPPONENT-NAME> {entry['opponent_name']}"
680
+ next_game_line = f"{next_game_line} <NEXT-IS-HOME> {next_game_is_home}"
681
+ return next_game_line
682
+
683
+ def get_next_game_info(self, entry):
684
+ """
685
+ Get next game data for both teams in a game.
686
+ In case of no next game, all values will be ''.
687
+ """
688
+ home_next_game = self.get_next_game_data_of_a_team(entry['teams']['home']['next_game'])
689
+ vis_next_game = self.get_next_game_data_of_a_team(entry['teams']['vis']['next_game'])
690
+ return home_next_game, vis_next_game
691
+
692
+ def linearize_input(self, entry):
693
+ """
694
+ Linearizes the input to the model.
695
+ """
696
+ game_data = self.get_game_data(entry['game'])
697
+ home_line, vis_line, home_box_score, vis_box_score = self.get_box_and_line_scores(entry)
698
+ home_next, vis_next = self.get_next_game_info(entry)
699
+ 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}"
700
+ return linearized_input
701
+
702
  def _generate_examples(
703
  self, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
704
  ):
 
717
  "teams": data["teams"],
718
  "summaries": data["summaries"],
719
  "target": detokenize(data["summaries"][0]),
720
+ "references": [detokenize(s) for s in data["summaries"]],
721
+ "linearized_input": self.linearize_input(data)
722
  }