Datasets:
Sebastian Gehrmann
commited on
Commit
•
8d23477
1
Parent(s):
bba3b53
add missing fields
Browse files- dataset_infos.json +1 -0
- sportsett_basketball.py +31 -11
dataset_infos.json
ADDED
@@ -0,0 +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}}
|
sportsett_basketball.py
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
|
18 |
import csv
|
19 |
import json
|
20 |
-
import
|
21 |
|
22 |
import datasets
|
23 |
|
@@ -62,6 +62,22 @@ _URLs = {
|
|
62 |
}
|
63 |
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
|
66 |
class SportSettBasketball(datasets.GeneratorBasedBuilder):
|
67 |
"""SportSett:Basketball datatset for Data-to-Text Generation."""
|
@@ -119,7 +135,7 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
|
|
119 |
"PF": datasets.Value("string"),
|
120 |
"PTS": datasets.Value("string"),
|
121 |
"MIN": datasets.Value("string")
|
122 |
-
},
|
123 |
"H1": {
|
124 |
"FG3A": datasets.Value("string"),
|
125 |
"FG3M": datasets.Value("string"),
|
@@ -139,7 +155,7 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
|
|
139 |
"TOV": datasets.Value("string"),
|
140 |
"PTS": datasets.Value("string"),
|
141 |
"MIN": datasets.Value("string")
|
142 |
-
},
|
143 |
"H2": {
|
144 |
"FG3A": datasets.Value("string"),
|
145 |
"FG3M": datasets.Value("string"),
|
@@ -260,8 +276,8 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
|
|
260 |
"PTS": datasets.Value("string"),
|
261 |
"MIN": datasets.Value("string")
|
262 |
}
|
263 |
-
},
|
264 |
-
"box_score": [
|
265 |
{
|
266 |
"first_name": datasets.Value("string"),
|
267 |
"last_name": datasets.Value("string"),
|
@@ -289,7 +305,7 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
|
|
289 |
"+/-": datasets.Value("string"),
|
290 |
"DOUBLE": datasets.Value("string")
|
291 |
}
|
292 |
-
],
|
293 |
"next_game": {
|
294 |
"day": datasets.Value("string"),
|
295 |
"month": datasets.Value("string"),
|
@@ -334,7 +350,7 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
|
|
334 |
"PF": datasets.Value("string"),
|
335 |
"PTS": datasets.Value("string"),
|
336 |
"MIN": datasets.Value("string")
|
337 |
-
},
|
338 |
"H1": {
|
339 |
"FG3A": datasets.Value("string"),
|
340 |
"FG3M": datasets.Value("string"),
|
@@ -354,7 +370,7 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
|
|
354 |
"TOV": datasets.Value("string"),
|
355 |
"PTS": datasets.Value("string"),
|
356 |
"MIN": datasets.Value("string")
|
357 |
-
},
|
358 |
"H2": {
|
359 |
"FG3A": datasets.Value("string"),
|
360 |
"FG3M": datasets.Value("string"),
|
@@ -475,8 +491,8 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
|
|
475 |
"PTS": datasets.Value("string"),
|
476 |
"MIN": datasets.Value("string")
|
477 |
}
|
478 |
-
},
|
479 |
-
"box_score": [
|
480 |
{
|
481 |
"first_name": datasets.Value("string"),
|
482 |
"last_name": datasets.Value("string"),
|
@@ -504,7 +520,7 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
|
|
504 |
"+/-": datasets.Value("string"),
|
505 |
"DOUBLE": datasets.Value("string")
|
506 |
}
|
507 |
-
],
|
508 |
"next_game": {
|
509 |
"day": datasets.Value("string"),
|
510 |
"month": datasets.Value("string"),
|
@@ -519,6 +535,8 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
|
|
519 |
}
|
520 |
},
|
521 |
"summaries": datasets.Sequence(datasets.Value("string")),
|
|
|
|
|
522 |
}
|
523 |
)
|
524 |
return datasets.DatasetInfo(
|
@@ -583,4 +601,6 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
|
|
583 |
"game": data["game"],
|
584 |
"teams": data["teams"],
|
585 |
"summaries": data["summaries"],
|
|
|
|
|
586 |
}
|
|
|
17 |
|
18 |
import csv
|
19 |
import json
|
20 |
+
import re
|
21 |
|
22 |
import datasets
|
23 |
|
|
|
62 |
}
|
63 |
|
64 |
|
65 |
+
def detokenize(text):
|
66 |
+
"""
|
67 |
+
Untokenizing a text undoes the tokenizing operation, restoring
|
68 |
+
punctuation and spaces to the places that people expect them to be.
|
69 |
+
Ideally, `untokenize(tokenize(text))` should be identical to `text`,
|
70 |
+
except for line breaks.
|
71 |
+
"""
|
72 |
+
step1 = text.replace("`` ", '"').replace(" ''", '"').replace('. . .', '...')
|
73 |
+
step2 = step1.replace(" ( ", " (").replace(" ) ", ") ")
|
74 |
+
step3 = re.sub(r' ([.,:;?!%]+)([ \'"`])', r"\1\2", step2)
|
75 |
+
step4 = re.sub(r' ([.,:;?!%]+)$', r"\1", step3)
|
76 |
+
step5 = step4.replace(" '", "'").replace(" n't", "n't").replace(
|
77 |
+
"can not", "cannot").replace(" 've", "'ve")
|
78 |
+
step6 = step5.replace(" ` ", " '")
|
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."""
|
|
|
135 |
"PF": datasets.Value("string"),
|
136 |
"PTS": datasets.Value("string"),
|
137 |
"MIN": datasets.Value("string")
|
138 |
+
},
|
139 |
"H1": {
|
140 |
"FG3A": datasets.Value("string"),
|
141 |
"FG3M": datasets.Value("string"),
|
|
|
155 |
"TOV": datasets.Value("string"),
|
156 |
"PTS": datasets.Value("string"),
|
157 |
"MIN": datasets.Value("string")
|
158 |
+
},
|
159 |
"H2": {
|
160 |
"FG3A": datasets.Value("string"),
|
161 |
"FG3M": datasets.Value("string"),
|
|
|
276 |
"PTS": datasets.Value("string"),
|
277 |
"MIN": datasets.Value("string")
|
278 |
}
|
279 |
+
},
|
280 |
+
"box_score": [
|
281 |
{
|
282 |
"first_name": datasets.Value("string"),
|
283 |
"last_name": datasets.Value("string"),
|
|
|
305 |
"+/-": datasets.Value("string"),
|
306 |
"DOUBLE": datasets.Value("string")
|
307 |
}
|
308 |
+
],
|
309 |
"next_game": {
|
310 |
"day": datasets.Value("string"),
|
311 |
"month": datasets.Value("string"),
|
|
|
350 |
"PF": datasets.Value("string"),
|
351 |
"PTS": datasets.Value("string"),
|
352 |
"MIN": datasets.Value("string")
|
353 |
+
},
|
354 |
"H1": {
|
355 |
"FG3A": datasets.Value("string"),
|
356 |
"FG3M": datasets.Value("string"),
|
|
|
370 |
"TOV": datasets.Value("string"),
|
371 |
"PTS": datasets.Value("string"),
|
372 |
"MIN": datasets.Value("string")
|
373 |
+
},
|
374 |
"H2": {
|
375 |
"FG3A": datasets.Value("string"),
|
376 |
"FG3M": datasets.Value("string"),
|
|
|
491 |
"PTS": datasets.Value("string"),
|
492 |
"MIN": datasets.Value("string")
|
493 |
}
|
494 |
+
},
|
495 |
+
"box_score": [
|
496 |
{
|
497 |
"first_name": datasets.Value("string"),
|
498 |
"last_name": datasets.Value("string"),
|
|
|
520 |
"+/-": datasets.Value("string"),
|
521 |
"DOUBLE": datasets.Value("string")
|
522 |
}
|
523 |
+
],
|
524 |
"next_game": {
|
525 |
"day": datasets.Value("string"),
|
526 |
"month": datasets.Value("string"),
|
|
|
535 |
}
|
536 |
},
|
537 |
"summaries": datasets.Sequence(datasets.Value("string")),
|
538 |
+
"target": datasets.Value("string"),
|
539 |
+
"references": [datasets.Value("string")]
|
540 |
}
|
541 |
)
|
542 |
return datasets.DatasetInfo(
|
|
|
601 |
"game": data["game"],
|
602 |
"teams": data["teams"],
|
603 |
"summaries": data["summaries"],
|
604 |
+
"target": detokenize(data["summaries"][0]),
|
605 |
+
"references": [detokenize(s) for s in data["summaries"]]
|
606 |
}
|