Datasets:
Tasks:
Table to Text
Modalities:
Text
Languages:
English
Size:
10K - 100K
Tags:
data-to-text
License:
ratishsp
commited on
Commit
•
b8241a9
1
Parent(s):
fc33f0e
updates
Browse files- mlb_data_to_text.json +9 -1
mlb_data_to_text.json
CHANGED
@@ -23,7 +23,15 @@
|
|
23 |
"task": "Data-to-Text",
|
24 |
"communicative": "Produce a summary of MLB game from its statistics. "
|
25 |
},
|
26 |
-
"credit": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
"structure": {
|
28 |
"data-fields": " features = datasets.Features(\n {\n \"home_name\": datasets.Value(\"string\"),\n \"box_score\": [\n {\n \"p_l\": datasets.Value(\"string\"),\n \"last_name\": datasets.Value(\"string\"),\n \"p_h\": datasets.Value(\"string\"),\n \"sac\": datasets.Value(\"string\"),\n \"p_bb\": datasets.Value(\"string\"),\n \"pos\": datasets.Value(\"string\"),\n \"ao\": datasets.Value(\"string\"),\n \"p_bf\": datasets.Value(\"string\"),\n \"cs\": datasets.Value(\"string\"),\n \"hbp\": datasets.Value(\"string\"),\n \"ab\": datasets.Value(\"string\"),\n \"full_name\": datasets.Value(\"string\"),\n \"p_w\": datasets.Value(\"string\"),\n \"go\": datasets.Value(\"string\"),\n \"fldg\": datasets.Value(\"string\"),\n \"p_bs\": datasets.Value(\"string\"),\n \"avg\": datasets.Value(\"string\"),\n \"p_r\": datasets.Value(\"string\"),\n \"p_s\": datasets.Value(\"string\"),\n \"lob\": datasets.Value(\"string\"),\n \"first_name\": datasets.Value(\"string\"),\n \"p_sv\": datasets.Value(\"string\"),\n \"p_so\": datasets.Value(\"string\"),\n \"p_save\": datasets.Value(\"string\"),\n \"p_hr\": datasets.Value(\"string\"),\n \"po\": datasets.Value(\"string\"),\n \"p_ip1\": datasets.Value(\"string\"),\n \"p_ip2\": datasets.Value(\"string\"),\n \"bb\": datasets.Value(\"string\"),\n \"ops\": datasets.Value(\"string\"),\n \"p_hld\": datasets.Value(\"string\"),\n \"bo\": datasets.Value(\"string\"),\n \"p_loss\": datasets.Value(\"string\"),\n \"e\": datasets.Value(\"string\"),\n \"p_game_score\": datasets.Value(\"string\"),\n \"p_win\": datasets.Value(\"string\"),\n \"a\": datasets.Value(\"string\"),\n \"p_era\": datasets.Value(\"string\"),\n \"d\": datasets.Value(\"string\"),\n \"p_out\": datasets.Value(\"string\"),\n \"h\": datasets.Value(\"string\"),\n \"p_er\": datasets.Value(\"string\"),\n \"p_np\": datasets.Value(\"string\"),\n \"hr\": datasets.Value(\"string\"),\n \"r\": datasets.Value(\"string\"),\n \"so\": datasets.Value(\"string\"),\n \"t\": datasets.Value(\"string\"),\n \"rbi\": datasets.Value(\"string\"),\n \"team\": datasets.Value(\"string\"),\n \"sb\": datasets.Value(\"string\"),\n \"slg\": datasets.Value(\"string\"),\n \"sf\": datasets.Value(\"string\"),\n \"obp\": datasets.Value(\"string\"),\n }\n ],\n \"home_city\": datasets.Value(\"string\"),\n \"vis_name\": datasets.Value(\"string\"),\n \"play_by_play\": [{\n \"top\": [{\n \"runs\": datasets.Value(\"string\"),\n \"scorers\": [\n datasets.Value(\"string\")\n ],\n \"pitcher\": datasets.Value(\"string\"),\n \"o\": datasets.Value(\"string\"),\n \"b\": datasets.Value(\"string\"),\n \"s\": datasets.Value(\"string\"),\n \"batter\": datasets.Value(\"string\"),\n \"b1\": [\n datasets.Value(\"string\")\n ],\n \"b2\": [\n datasets.Value(\"string\")\n ],\n \"b3\": [\n datasets.Value(\"string\")\n ],\n \"event\": datasets.Value(\"string\"),\n \"event2\": datasets.Value(\"string\"),\n \"home_team_runs\": datasets.Value(\"string\"),\n \"away_team_runs\": datasets.Value(\"string\"),\n \"rbi\": datasets.Value(\"string\"),\n \"error_runs\": datasets.Value(\"string\"),\n \"fielder_error\": datasets.Value(\"string\")\n }\n ],\n \"bottom\": [{\n \"runs\": datasets.Value(\"string\"),\n \"scorers\": [\n datasets.Value(\"string\")\n ],\n \"pitcher\": datasets.Value(\"string\"),\n \"o\": datasets.Value(\"string\"),\n \"b\": datasets.Value(\"string\"),\n \"s\": datasets.Value(\"string\"),\n \"batter\": datasets.Value(\"string\"),\n \"b1\": [\n datasets.Value(\"string\")\n ],\n \"b2\": [\n datasets.Value(\"string\")\n ],\n \"b3\": [\n datasets.Value(\"string\")\n ],\n \"event\": datasets.Value(\"string\"),\n \"event2\": datasets.Value(\"string\"),\n \"home_team_runs\": datasets.Value(\"string\"),\n \"away_team_runs\": datasets.Value(\"string\"),\n \"rbi\": datasets.Value(\"string\"),\n \"error_runs\": datasets.Value(\"string\"),\n \"fielder_error\": datasets.Value(\"string\")\n }\n ],\n \"inning\": datasets.Value(\"string\")\n }\n ],\n \"vis_line\": {\n \"innings\": [{\n \"inn\": datasets.Value(\"string\"),\n \"runs\": datasets.Value(\"string\")\n }\n ],\n \"result\": datasets.Value(\"string\"),\n \"team_runs\": datasets.Value(\"string\"),\n \"team_hits\": datasets.Value(\"string\"),\n \"team_errors\": datasets.Value(\"string\"),\n \"team_name\": datasets.Value(\"string\"),\n \"team_city\": datasets.Value(\"string\")\n },\n \"home_line\": {\n \"innings\": [{\n \"inn\": datasets.Value(\"string\"),\n \"runs\": datasets.Value(\"string\")\n }\n ],\n \"result\": datasets.Value(\"string\"),\n \"team_runs\": datasets.Value(\"string\"),\n \"team_hits\": datasets.Value(\"string\"),\n \"team_errors\": datasets.Value(\"string\"),\n \"team_name\": datasets.Value(\"string\"),\n \"team_city\": datasets.Value(\"string\")\n },\n \"vis_city\": datasets.Value(\"string\"),\n \"day\": datasets.Value(\"string\"),\n \"summary\": [\n datasets.Value(\"string\"),\n ],\n \"gem_id\": datasets.Value(\"string\")\n }",
|
29 |
"structure-description": "The high level structure contains the following attributes: home_name, vis_name, home_city, vis_city, summary, summary_eval, day, gem_id, box_score, play_by_play, home_line, vis_line.\nThe attributes home_name, vis_name, home_city, vis_city and day are string values.\nThe attribute \"summary\" contains the summary in the form of a list of tokens.\nThe attribute \"summary_eval\" contains the summary in the form of a string of tokens. The difference from \"summary\" field is that \"summary_eval\" doesn't contain \"*NEWPARAGRAPH*\" delimiters to separate the paragraphs. \"summary_eval\" field should be used to evaluate model outputs. \"summary\" field may be used during the training process.\nbox_score contains the box score statistics of the players in the game. It is in the form of a list (of average size 90), with each element describing the statistics of a player. The box score statistics contain 53 attributes. \nThe description of the attributes is given below:\n Column Name Meaning \n r Runs scored by a player in the game. \n rbi Runs Batted In (RBI): action of a batter results in a run scored by other players in the team. \n pos Position of the player. \n avg Batting Average. It is an indicator of the hits in the players' career. \n bb A walk occurs when a pitcher throws four pitches out of the strike zone, none of which are swung at by the hitter. \n hr Batter hits the ball in the air over the outfield fence. \n p_r Runs given by a pitcher in the game. \n p_bb Walks allowed by pitcher in a game. \n p_h Hits allowed by pitcher in a game. \n p_hr Home runs allowed by pitcher in a game. \n p_er Earned Run (ER): An earned run is any run that scores against a pitcher. \n p_era Earned Run Average (ERA): Earned run average represents the number of earned runs a pitcher allows per nine innings. \n p_np Number of Pitches: A pitcher's total number of pitches is determined by all the pitches he throws in game. \n p_ip1 Innings Pitched (IP1): Innings pitched measures the number of innings a pitcher remains in a game. Because there are three outs in an inning, each out recorded represents one-third of an inning pitched. \n p_ip2 Innings Pitched (IP2): Innings pitched measures the number of innings a pitcher remains in a game. Because there are three outs in an inning, each out recorded represents one-third of an inning pitched. \n p_w A pitcher receives a win when he is the pitcher of record when his team takes the lead for good. \n p_l A pitcher receives a loss when a run that is charged to him proves to be the go-ahead run in the game, giving the opposing team a lead it never gives up. \n p_so A strikeout occurs when a pitcher throws any combination of three swinging or looking strikes to a hitter. \n p_save Save: A save is awarded to the relief pitcher who finishes a game for the winning team. A pitcher cannot receive a save and a win in the same game. \n p_sv Saves: The count of saves recorded by a pitcher in his career. \n sac A sacrifice fly occurs when a batter hits a fly-ball out to the outfield or foul territory that allows a runner to score. \n p_bf Batters faced is simply a count of the number of total plate appearances against a certain pitcher or team. In a perfect game -- with 27 outs -- a pitcher will record 27 batters faced. \n cs A caught stealing occurs when a runner attempts to steal but is tagged out before reaching second base, third base or home plate. \n hbp A hit-by-pitch occurs when a batter is struck by a pitched ball without swinging at it. He is awarded first base as a result. \n ab An official at-bat comes when a batter reaches base via a fielder's choice, hit or an error (not including catcher's interference) or when a batter is put out on a non-sacrifice. \n p_bs A blown save occurs when a relief pitcher enters a game in a save situation, but allows the tying run to score. \n p_s The count of strikes thrown by a pitcher \n lob Left on base can be viewed as both an individual statistic or as a team statistic. In an individual batter's case, it refers to how many men remain on base after that batter makes an out at the plate, as the batter has failed to do his job to score those runners -- or at least put himself in a position to score. In a team's case or in an individual pitcher's case, it refers to the number of men who remain on base at the end of an inning. \n po A fielder is credited with a putout when he is the fielder who physically records the act of completing an out -- whether it be by stepping on the base for a forceout, tagging a runner, catching a batted ball, or catching a third strike \n ops OPS adds on-base percentage and slugging percentage to get one number that unites the two. It's meant to combine how well a hitter can reach base, with how well he can hit for average and for power. \n p_hld A hold occurs when a relief pitcher enters the game in a save situation and maintains his team's lead for the next relief pitcher, while recording at least one out. \n p_loss True/False- Indicates losing pitcher \n e A fielder is given an error if, in the judgment of the official scorer, he fails to convert an out on a play that an average fielder should have made. \n p_win True/False- Indicates winning pitcher \n a An assist is awarded to a fielder who touches the ball before a putout is recorded by another fielder. \n h A hit occurs when a batter strikes the baseball into fair territory and reaches base without doing so via an error or a fielder's choice. \n so A strikeout of a batter \n team Team of the player \n sb A stolen base occurs when a baserunner advances by taking a base to which he isn't entitled. \n slg Slugging percentage represents the total number of bases a player records per at-bat. Unlike on-base percentage, slugging percentage deals only with hits and does not include walks and hit-by-pitches in its equation. \n sf A sacrifice fly occurs when a batter hits a fly-ball out to the outfield or foul territory that allows a runner to score. \n obp OBP refers to how frequently a batter reaches base per plate appearance. Times on base include hits, walks and hit-by-pitches, but do not include errors, times reached on a fielder's choice or a dropped third strike. \n\nThe description of attributes in play-by-play is below:\n\n Column Name Meaning \n batter Batter in the play. \n pitcher Pitcher in play. \n b1 Player/s at first base position. \n b2 Player/s at second base position. \n b3 Player/s at third base position. \n scorers Player/s scored in the play. \n fielder_error Player committed field error. \n event Event of the play such as single, double, home run etc. \n event2 Second event of the play such as wild pitch, error etc. \n inning Inning of the play. \n top/ bottom If home team is batting it is bottom and if away team is batting it is top. \n o Count of outs \n b Count of balls \n s Count of strikes \n r Count of runs \n rbi Count of runs batted in (rbi) \n error_runs Runs due to error \n home_team_runs Score of home team \n vis_team_runs Score of visiting team \n\nhome_line and vis_line contain string value pairs for team_name, team_city, team_runs, team_hits, team_error, result, and a list of runs scored in each inning.",
|
|
|
23 |
"task": "Data-to-Text",
|
24 |
"communicative": "Produce a summary of MLB game from its statistics. "
|
25 |
},
|
26 |
+
"credit": {
|
27 |
+
"organization-type": [
|
28 |
+
"academic"
|
29 |
+
],
|
30 |
+
"organization-names": "University of Edinburgh",
|
31 |
+
"creators": "Ratish Puduppully, Li Dong, Mirella Lapata",
|
32 |
+
"funding": "",
|
33 |
+
"gem-added-by": ""
|
34 |
+
},
|
35 |
"structure": {
|
36 |
"data-fields": " features = datasets.Features(\n {\n \"home_name\": datasets.Value(\"string\"),\n \"box_score\": [\n {\n \"p_l\": datasets.Value(\"string\"),\n \"last_name\": datasets.Value(\"string\"),\n \"p_h\": datasets.Value(\"string\"),\n \"sac\": datasets.Value(\"string\"),\n \"p_bb\": datasets.Value(\"string\"),\n \"pos\": datasets.Value(\"string\"),\n \"ao\": datasets.Value(\"string\"),\n \"p_bf\": datasets.Value(\"string\"),\n \"cs\": datasets.Value(\"string\"),\n \"hbp\": datasets.Value(\"string\"),\n \"ab\": datasets.Value(\"string\"),\n \"full_name\": datasets.Value(\"string\"),\n \"p_w\": datasets.Value(\"string\"),\n \"go\": datasets.Value(\"string\"),\n \"fldg\": datasets.Value(\"string\"),\n \"p_bs\": datasets.Value(\"string\"),\n \"avg\": datasets.Value(\"string\"),\n \"p_r\": datasets.Value(\"string\"),\n \"p_s\": datasets.Value(\"string\"),\n \"lob\": datasets.Value(\"string\"),\n \"first_name\": datasets.Value(\"string\"),\n \"p_sv\": datasets.Value(\"string\"),\n \"p_so\": datasets.Value(\"string\"),\n \"p_save\": datasets.Value(\"string\"),\n \"p_hr\": datasets.Value(\"string\"),\n \"po\": datasets.Value(\"string\"),\n \"p_ip1\": datasets.Value(\"string\"),\n \"p_ip2\": datasets.Value(\"string\"),\n \"bb\": datasets.Value(\"string\"),\n \"ops\": datasets.Value(\"string\"),\n \"p_hld\": datasets.Value(\"string\"),\n \"bo\": datasets.Value(\"string\"),\n \"p_loss\": datasets.Value(\"string\"),\n \"e\": datasets.Value(\"string\"),\n \"p_game_score\": datasets.Value(\"string\"),\n \"p_win\": datasets.Value(\"string\"),\n \"a\": datasets.Value(\"string\"),\n \"p_era\": datasets.Value(\"string\"),\n \"d\": datasets.Value(\"string\"),\n \"p_out\": datasets.Value(\"string\"),\n \"h\": datasets.Value(\"string\"),\n \"p_er\": datasets.Value(\"string\"),\n \"p_np\": datasets.Value(\"string\"),\n \"hr\": datasets.Value(\"string\"),\n \"r\": datasets.Value(\"string\"),\n \"so\": datasets.Value(\"string\"),\n \"t\": datasets.Value(\"string\"),\n \"rbi\": datasets.Value(\"string\"),\n \"team\": datasets.Value(\"string\"),\n \"sb\": datasets.Value(\"string\"),\n \"slg\": datasets.Value(\"string\"),\n \"sf\": datasets.Value(\"string\"),\n \"obp\": datasets.Value(\"string\"),\n }\n ],\n \"home_city\": datasets.Value(\"string\"),\n \"vis_name\": datasets.Value(\"string\"),\n \"play_by_play\": [{\n \"top\": [{\n \"runs\": datasets.Value(\"string\"),\n \"scorers\": [\n datasets.Value(\"string\")\n ],\n \"pitcher\": datasets.Value(\"string\"),\n \"o\": datasets.Value(\"string\"),\n \"b\": datasets.Value(\"string\"),\n \"s\": datasets.Value(\"string\"),\n \"batter\": datasets.Value(\"string\"),\n \"b1\": [\n datasets.Value(\"string\")\n ],\n \"b2\": [\n datasets.Value(\"string\")\n ],\n \"b3\": [\n datasets.Value(\"string\")\n ],\n \"event\": datasets.Value(\"string\"),\n \"event2\": datasets.Value(\"string\"),\n \"home_team_runs\": datasets.Value(\"string\"),\n \"away_team_runs\": datasets.Value(\"string\"),\n \"rbi\": datasets.Value(\"string\"),\n \"error_runs\": datasets.Value(\"string\"),\n \"fielder_error\": datasets.Value(\"string\")\n }\n ],\n \"bottom\": [{\n \"runs\": datasets.Value(\"string\"),\n \"scorers\": [\n datasets.Value(\"string\")\n ],\n \"pitcher\": datasets.Value(\"string\"),\n \"o\": datasets.Value(\"string\"),\n \"b\": datasets.Value(\"string\"),\n \"s\": datasets.Value(\"string\"),\n \"batter\": datasets.Value(\"string\"),\n \"b1\": [\n datasets.Value(\"string\")\n ],\n \"b2\": [\n datasets.Value(\"string\")\n ],\n \"b3\": [\n datasets.Value(\"string\")\n ],\n \"event\": datasets.Value(\"string\"),\n \"event2\": datasets.Value(\"string\"),\n \"home_team_runs\": datasets.Value(\"string\"),\n \"away_team_runs\": datasets.Value(\"string\"),\n \"rbi\": datasets.Value(\"string\"),\n \"error_runs\": datasets.Value(\"string\"),\n \"fielder_error\": datasets.Value(\"string\")\n }\n ],\n \"inning\": datasets.Value(\"string\")\n }\n ],\n \"vis_line\": {\n \"innings\": [{\n \"inn\": datasets.Value(\"string\"),\n \"runs\": datasets.Value(\"string\")\n }\n ],\n \"result\": datasets.Value(\"string\"),\n \"team_runs\": datasets.Value(\"string\"),\n \"team_hits\": datasets.Value(\"string\"),\n \"team_errors\": datasets.Value(\"string\"),\n \"team_name\": datasets.Value(\"string\"),\n \"team_city\": datasets.Value(\"string\")\n },\n \"home_line\": {\n \"innings\": [{\n \"inn\": datasets.Value(\"string\"),\n \"runs\": datasets.Value(\"string\")\n }\n ],\n \"result\": datasets.Value(\"string\"),\n \"team_runs\": datasets.Value(\"string\"),\n \"team_hits\": datasets.Value(\"string\"),\n \"team_errors\": datasets.Value(\"string\"),\n \"team_name\": datasets.Value(\"string\"),\n \"team_city\": datasets.Value(\"string\")\n },\n \"vis_city\": datasets.Value(\"string\"),\n \"day\": datasets.Value(\"string\"),\n \"summary\": [\n datasets.Value(\"string\"),\n ],\n \"gem_id\": datasets.Value(\"string\")\n }",
|
37 |
"structure-description": "The high level structure contains the following attributes: home_name, vis_name, home_city, vis_city, summary, summary_eval, day, gem_id, box_score, play_by_play, home_line, vis_line.\nThe attributes home_name, vis_name, home_city, vis_city and day are string values.\nThe attribute \"summary\" contains the summary in the form of a list of tokens.\nThe attribute \"summary_eval\" contains the summary in the form of a string of tokens. The difference from \"summary\" field is that \"summary_eval\" doesn't contain \"*NEWPARAGRAPH*\" delimiters to separate the paragraphs. \"summary_eval\" field should be used to evaluate model outputs. \"summary\" field may be used during the training process.\nbox_score contains the box score statistics of the players in the game. It is in the form of a list (of average size 90), with each element describing the statistics of a player. The box score statistics contain 53 attributes. \nThe description of the attributes is given below:\n Column Name Meaning \n r Runs scored by a player in the game. \n rbi Runs Batted In (RBI): action of a batter results in a run scored by other players in the team. \n pos Position of the player. \n avg Batting Average. It is an indicator of the hits in the players' career. \n bb A walk occurs when a pitcher throws four pitches out of the strike zone, none of which are swung at by the hitter. \n hr Batter hits the ball in the air over the outfield fence. \n p_r Runs given by a pitcher in the game. \n p_bb Walks allowed by pitcher in a game. \n p_h Hits allowed by pitcher in a game. \n p_hr Home runs allowed by pitcher in a game. \n p_er Earned Run (ER): An earned run is any run that scores against a pitcher. \n p_era Earned Run Average (ERA): Earned run average represents the number of earned runs a pitcher allows per nine innings. \n p_np Number of Pitches: A pitcher's total number of pitches is determined by all the pitches he throws in game. \n p_ip1 Innings Pitched (IP1): Innings pitched measures the number of innings a pitcher remains in a game. Because there are three outs in an inning, each out recorded represents one-third of an inning pitched. \n p_ip2 Innings Pitched (IP2): Innings pitched measures the number of innings a pitcher remains in a game. Because there are three outs in an inning, each out recorded represents one-third of an inning pitched. \n p_w A pitcher receives a win when he is the pitcher of record when his team takes the lead for good. \n p_l A pitcher receives a loss when a run that is charged to him proves to be the go-ahead run in the game, giving the opposing team a lead it never gives up. \n p_so A strikeout occurs when a pitcher throws any combination of three swinging or looking strikes to a hitter. \n p_save Save: A save is awarded to the relief pitcher who finishes a game for the winning team. A pitcher cannot receive a save and a win in the same game. \n p_sv Saves: The count of saves recorded by a pitcher in his career. \n sac A sacrifice fly occurs when a batter hits a fly-ball out to the outfield or foul territory that allows a runner to score. \n p_bf Batters faced is simply a count of the number of total plate appearances against a certain pitcher or team. In a perfect game -- with 27 outs -- a pitcher will record 27 batters faced. \n cs A caught stealing occurs when a runner attempts to steal but is tagged out before reaching second base, third base or home plate. \n hbp A hit-by-pitch occurs when a batter is struck by a pitched ball without swinging at it. He is awarded first base as a result. \n ab An official at-bat comes when a batter reaches base via a fielder's choice, hit or an error (not including catcher's interference) or when a batter is put out on a non-sacrifice. \n p_bs A blown save occurs when a relief pitcher enters a game in a save situation, but allows the tying run to score. \n p_s The count of strikes thrown by a pitcher \n lob Left on base can be viewed as both an individual statistic or as a team statistic. In an individual batter's case, it refers to how many men remain on base after that batter makes an out at the plate, as the batter has failed to do his job to score those runners -- or at least put himself in a position to score. In a team's case or in an individual pitcher's case, it refers to the number of men who remain on base at the end of an inning. \n po A fielder is credited with a putout when he is the fielder who physically records the act of completing an out -- whether it be by stepping on the base for a forceout, tagging a runner, catching a batted ball, or catching a third strike \n ops OPS adds on-base percentage and slugging percentage to get one number that unites the two. It's meant to combine how well a hitter can reach base, with how well he can hit for average and for power. \n p_hld A hold occurs when a relief pitcher enters the game in a save situation and maintains his team's lead for the next relief pitcher, while recording at least one out. \n p_loss True/False- Indicates losing pitcher \n e A fielder is given an error if, in the judgment of the official scorer, he fails to convert an out on a play that an average fielder should have made. \n p_win True/False- Indicates winning pitcher \n a An assist is awarded to a fielder who touches the ball before a putout is recorded by another fielder. \n h A hit occurs when a batter strikes the baseball into fair territory and reaches base without doing so via an error or a fielder's choice. \n so A strikeout of a batter \n team Team of the player \n sb A stolen base occurs when a baserunner advances by taking a base to which he isn't entitled. \n slg Slugging percentage represents the total number of bases a player records per at-bat. Unlike on-base percentage, slugging percentage deals only with hits and does not include walks and hit-by-pitches in its equation. \n sf A sacrifice fly occurs when a batter hits a fly-ball out to the outfield or foul territory that allows a runner to score. \n obp OBP refers to how frequently a batter reaches base per plate appearance. Times on base include hits, walks and hit-by-pitches, but do not include errors, times reached on a fielder's choice or a dropped third strike. \n\nThe description of attributes in play-by-play is below:\n\n Column Name Meaning \n batter Batter in the play. \n pitcher Pitcher in play. \n b1 Player/s at first base position. \n b2 Player/s at second base position. \n b3 Player/s at third base position. \n scorers Player/s scored in the play. \n fielder_error Player committed field error. \n event Event of the play such as single, double, home run etc. \n event2 Second event of the play such as wild pitch, error etc. \n inning Inning of the play. \n top/ bottom If home team is batting it is bottom and if away team is batting it is top. \n o Count of outs \n b Count of balls \n s Count of strikes \n r Count of runs \n rbi Count of runs batted in (rbi) \n error_runs Runs due to error \n home_team_runs Score of home team \n vis_team_runs Score of visiting team \n\nhome_line and vis_line contain string value pairs for team_name, team_city, team_runs, team_hits, team_error, result, and a list of runs scored in each inning.",
|