MatchTime: Towards Automatic Soccer Game Commentary Generation
Paper • 2406.18530 • Published • 12
Error code: DatasetGenerationError
Exception: TypeError
Message: Couldn't cast array of type
struct<important: bool, gameTime: string, gt_gameTime: string, label: string, description: string, identified: string, anonymized: string, visibility: string, position: string>
to
{'important': Value('bool'), 'gameTime': Value('string'), 'label': Value('string'), 'description': Value('string'), 'identified': Value('string'), 'anonymized': Value('string'), 'visibility': Value('string'), 'position': Value('string'), 'event_aligned_gameTime': Value('string'), 'contrastive_aligned_gameTime': Value('string')}
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1816, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2303, in cast_table_to_schema
cast_array_to_feature(
~~~~~~~~~~~~~~~~~~~~~^
table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
feature,
^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1852, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2109, in cast_array_to_feature
casted_array_values = _c(array.values, feature.feature)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1854, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2149, in cast_array_to_feature
raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
TypeError: Couldn't cast array of type
struct<important: bool, gameTime: string, gt_gameTime: string, label: string, description: string, identified: string, anonymized: string, visibility: string, position: string>
to
{'important': Value('bool'), 'gameTime': Value('string'), 'label': Value('string'), 'description': Value('string'), 'identified': Value('string'), 'anonymized': Value('string'), 'visibility': Value('string'), 'position': Value('string'), 'event_aligned_gameTime': Value('string'), 'contrastive_aligned_gameTime': Value('string')}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1869, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
timestamp string | score string | round string | teams list | lineup dict | referee list | venue list | attendance list | referee_matched list | referee_found list | coach_matched list | gameHomeTeam string | home dict | gameAwayTeam string | away dict | gameDate string | annotations list |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1424530800 | 1 - 1 | 26 | [
"Chelsea",
"Burnley"
] | {
"home": {
"tactic": "1-4-2-3-1",
"players": [
{
"hash": "vBw5nir8",
"name": "Costa D.",
"captain": "",
"detail_link": "/player/costa-diego/vBw5nir8/",
"short_name": "Costa",
"shirt_number": "19",
"country": "Spain",
"facts": [],
"... | [
"Atkinson M."
] | [
"Stamford Bridge (London)"
] | [
"41 629"
] | [
"Martin Atkinson"
] | [
"Martin Atkinson"
] | [
"Sean Dyche",
"Jose Mourinho"
] | Chelsea | {
"name": "Chelsea",
"detail_link": "/team/chelsea/4fGZN2oK",
"hash": "4fGZN2oK",
"names": [
"Chelsea",
"chelsea"
]
} | Burnley | {
"name": "Burnley",
"detail_link": "/team/burnley/z3dmTMMO",
"hash": "z3dmTMMO",
"names": [
"Burnley",
"Burnley (Eng)",
"burnley"
]
} | 21/02/2015 - 16:00 | [
{
"important": false,
"gameTime": "2 - 49:59",
"label": "",
"description": "Most of the fans probably aren't overly pleased with the development of the game as it wasn't very exciting. The hosts were largely in control of the game today. Both sides tried to combine well and to keep the ball at their... |
1424530800 | 1 - 2 | 26 | [
"Arsenal",
"Crystal Palace"
] | {
"home": {
"tactic": "1-4-1-4-1",
"players": [
{
"hash": "M9TrqrH7",
"name": "Campbell F.",
"captain": "",
"detail_link": "/player/campbell-fraizer/M9TrqrH7/",
"short_name": "Campbell",
"shirt_number": "10",
"country": "England",
"facts": ... | [
"Clattenburg M."
] | [
"Selhurst Park (London)"
] | [
"25"
] | [
"Mark Clattenburg"
] | [
"Mark Clattenburg"
] | [
"Alan Pardew",
"Arsene Wenger"
] | Crystal Palace | {
"name": "Crystal Palace",
"detail_link": "/team/crystal-palace/AovF1Mia",
"hash": "AovF1Mia",
"names": [
"Crystal Palace",
"crystal palace"
]
} | Arsenal | {
"name": "Arsenal",
"detail_link": "/team/arsenal/hA1Zm19f",
"hash": "hA1Zm19f",
"names": [
"Arsenal",
"Arsenal (Eng)",
"arsenal"
]
} | 21/02/2015 - 16:00 | [
{
"important": false,
"gameTime": "2 - 50:59",
"label": "",
"description": "According to the statistics, the match was pretty entertaining. There were plenty of thrilling moments. Great display from the home side, you have to say that they were the better side today. Long balls and crosses were the ... |
1424530800 | 2 - 1 | 26 | [
"Manchester United",
"Swansea"
] | {
"home": {
"tactic": "1-4-2-3-1",
"players": [
{
"hash": "tnl7ejng",
"name": "Cork J.",
"captain": "",
"detail_link": "/player/cork-jack/tnl7ejng/",
"short_name": "Cork",
"shirt_number": "24",
"country": "England",
"facts": [],
"li... | [
"Swarbrick N."
] | [
"Swansea.com Stadium (Swansea)"
] | [
"20 809"
] | [
"Neil Swarbrick"
] | [
"Neil Swarbrick"
] | [
"Louis van Gaal"
] | Swansea | {
"name": "Swansea",
"detail_link": "/team/swansea/K6xezbY7",
"hash": "K6xezbY7",
"names": [
"Swansea",
"swansea"
]
} | Manchester United | {
"name": "Manchester United",
"detail_link": "/team/manchester-united/ppjDR086",
"hash": "ppjDR086",
"names": [
"Manchester United",
"Manchester Utd",
"Manchester Utd (Eng)",
"manchester united"
]
} | 21/02/2015 - 16:00 | [
{
"important": false,
"gameTime": "2 - 49:59",
"label": "",
"description": "There was no time for the supporters to get bored during the game as it was full of action and thrilling moments. It was an even match on the whole, with both sides enjoying spells in the ascendancy. The home team played lon... |
1424621700 | 0 - 2 | 26 | [
"Southampton",
"Liverpool"
] | {"home":{"tactic":"1-4-3-3","players":[{"hash":"Eo9X2cTu","name":"Clyne N.","captain":"","detail_lin(...TRUNCATED) | [
"Friend K."
] | [
"St. Mary's Stadium (Southampton)"
] | [
"31 723"
] | [
"Kevin Friend"
] | [
"Kevin Friend"
] | [
"Ronald Koeman"
] | Southampton | {"name":"Southampton","detail_link":"/team/southampton/WdKOwxDM","hash":"WdKOwxDM","names":["Southam(...TRUNCATED) | Liverpool | {"name":"Liverpool","detail_link":"/team/liverpool/lId4TMwf","hash":"lId4TMwf","names":["Liverpool",(...TRUNCATED) | 22/02/2015 - 17:15 | [{"important":false,"gameTime":"2 - 49:59","label":"","description":"Let's hope the players will sho(...TRUNCATED) |
1428769800 | 0 - 1 | 32 | [
"Arsenal",
"Burnley"
] | {"home":{"tactic":"1-4-4-2","players":[{"hash":"juUdUvvS","name":"Arfield S.","captain":"","detail_l(...TRUNCATED) | [
"Dean M."
] | [
"Turf Moor (Burnley)"
] | [
"20 615"
] | [
"Michael Dean"
] | [
"Michael Dean"
] | [
"Arsene Wenger"
] | Burnley | {"name":"Burnley","detail_link":"/team/burnley/z3dmTMMO","hash":"z3dmTMMO","names":["Burnley","Burnl(...TRUNCATED) | Arsenal | {"name":"Arsenal","detail_link":"/team/arsenal/hA1Zm19f","hash":"hA1Zm19f","names":["Arsenal","Arsen(...TRUNCATED) | 11/04/2015 - 18:30 | [{"important":false,"gameTime":"2 - 48:59","label":"","description":"We have been watching a lacklus(...TRUNCATED) |
1439051400 | 2 - 2 | 1 | [
"Chelsea",
"Swansea"
] | {"home":{"tactic":"1-4-2-3-1","players":[{"hash":"CMGUADgt","name":"Azpilicueta C.","captain":"","de(...TRUNCATED) | [
"Oliver M."
] | [
"Stamford Bridge (London)"
] | [
"41 232"
] | [
"Michael Oliver"
] | [
"Michael Oliver"
] | [
"Garry Monk",
"Jose Mourinho"
] | Chelsea | {"name":"Chelsea","detail_link":"/team/chelsea/4fGZN2oK","hash":"4fGZN2oK","names":["Chelsea","chels(...TRUNCATED) | Swansea | {"name":"Swansea","detail_link":"/team/swansea/K6xezbY7","hash":"K6xezbY7","names":["Swansea","swans(...TRUNCATED) | 08/08/2015 - 18:30 | [{"important":false,"gameTime":"2 - 49:59","label":"","description":"All in all that was an entertai(...TRUNCATED) |
1440856800 | 1 - 2 | 4 | [
"Crystal Palace",
"Chelsea"
] | {"home":{"tactic":"1-4-2-3-1","players":[{"hash":"CMGUADgt","name":"Azpilicueta C.","captain":"","de(...TRUNCATED) | [
"Pawson C."
] | [
"Stamford Bridge (London)"
] | [
"41 581"
] | [
"Craig Pawson"
] | [
"Craig Pawson"
] | [
"Alan Pardew",
"Jose Mourinho"
] | Chelsea | {"name":"Chelsea","detail_link":"/team/chelsea/4fGZN2oK","hash":"4fGZN2oK","names":["Chelsea","chels(...TRUNCATED) | Crystal Palace | {"name":"Crystal Palace","detail_link":"/team/crystal-palace/AovF1Mia","hash":"AovF1Mia","names":["C(...TRUNCATED) | 29/08/2015 - 16:00 | [{"important":false,"gameTime":"2 - 50:59","label":"","description":"It was a good decision to watch(...TRUNCATED) |
1440856800 | 2 - 0 | 4 | [
"Watford",
"Manchester City"
] | {"home":{"tactic":"1-4-2-3-1","players":[{"hash":"vw8ZV7HC","name":"Aguero S.","captain":"","detail_(...TRUNCATED) | [
"Clattenburg M."
] | [
"Etihad Stadium (Manchester)"
] | [
"53 218"
] | [
"Mark Clattenburg"
] | [
"Mark Clattenburg"
] | [
"Manuel Pellegrini"
] | Manchester City | {"name":"Manchester City","detail_link":"/team/manchester-city/Wtn9Stg0","hash":"Wtn9Stg0","names":[(...TRUNCATED) | Watford | {"name":"Watford","detail_link":"/team/watford/UmMRoGzp","hash":"UmMRoGzp","names":["Watford","watfo(...TRUNCATED) | 29/08/2015 - 16:00 | [{"important":false,"gameTime":"2 - 47:59","label":"","description":"This game has surely entertaine(...TRUNCATED) |
1440946800 | 2 - 1 | 4 | [
"Swansea",
"Manchester United"
] | {"home":{"tactic":"1-4-2-3-1","players":[{"hash":"GrZDpRwB","name":"Ayew A.","captain":"","detail_li(...TRUNCATED) | [
"Atkinson M."
] | [
"Swansea.com Stadium (Swansea)"
] | [
"20 828"
] | [
"Martin Atkinson"
] | [
"Martin Atkinson"
] | [
"Louis van Gaal"
] | Swansea | {"name":"Swansea","detail_link":"/team/swansea/K6xezbY7","hash":"K6xezbY7","names":["Swansea","swans(...TRUNCATED) | Manchester United | {"name":"Manchester United","detail_link":"/team/manchester-united/ppjDR086","hash":"ppjDR086","name(...TRUNCATED) | 30/08/2015 - 17:00 | [{"important":false,"gameTime":"2 - 49:59","label":"","description":"We saw a few chances and nice p(...TRUNCATED) |
1442058300 | 3 - 1 | 5 | [
"Everton",
"Chelsea"
] | {"home":{"tactic":"1-4-3-1-2","players":[{"hash":"Stsozgbg","name":"Barkley R.","captain":"","detail(...TRUNCATED) | [
"Marriner A."
] | [
"Goodison Park (Liverpool)"
] | [
"38 311"
] | [
"Andre Marriner"
] | [
"Andre Marriner"
] | [
"Jose Mourinho",
"Roberto Martinez"
] | Everton | {"name":"Everton","detail_link":"/team/everton/KluSTr9s","hash":"KluSTr9s","names":["Everton","Evert(...TRUNCATED) | Chelsea | {"name":"Chelsea","detail_link":"/team/chelsea/4fGZN2oK","hash":"4fGZN2oK","names":["Chelsea","chels(...TRUNCATED) | 12/09/2015 - 13:45 | [{"important":false,"gameTime":"2 - 49:59","label":"","description":"The fans in the stadium certain(...TRUNCATED) |
Here we listed 3 datasets:
SN-Caption:
SN-Caption-test-align:
*MatchTime: