Datasets:
Summaries contain information not contained in the original doc
After loading the dataset:
from datasets import load_dataset
dataset = load_dataset("xsum")
I started going through some samples at random, and noticed there are multiple issues. For example, sample 89 in test:
>>> print(dataset['test'][89]['document'])
Media playback is not supported on this device Dusmatov, 23, was awarded a unanimous points victory - two judges scoring the fight 30-27, and one 29-28. Martinez, 24, is the first Olympic boxing finalist from Colombia. The United States' Nico Hernandez, 20, and 19-year-old Cuban world champion Joahnys Argilagos took bronze after losing in the semi-finals. Find out how to get into boxing with our special guide. Subscribe to the BBC Sport newsletter to get our pick of news, features and video sent to your inbox.
>>> print(dataset['test'][89]['summary'])
Uzbekistan's Hasanboy Dusmatov won Olympic gold in the men's light-flyweight with victory over Colombian Yuberjen Herney Martinez.
- The Uzbekistan man's first name (Hasanboy) is present in the summary but is not present in the document.
- The data is not clean - site warnings such as "media playback is not supported on this device" are appearing as a part of the document.
Another example (sample #534 in test):
- Document: Officers were called to Lowe Street in Whitmore Reans, Wolverhampton at 17:00 GMT on Thursday when a 17-year-old boy was found with stab wounds. Several minutes later a second call was made to police when a shotgun was fired twice in nearby Deveron Close. West Midlands Police believe the men, who have now been bailed, were linked to both incidents. The teenager remains in hospital in a stable condition, police said. DCI Chris Hanson said: "We believe both of these offences were linked and were the result of a dispute between two groups. "The shooting happened following an argument between a group and a lone man with a gun."
- Summary: Ten men were arrested after a teenager was stabbed and gun shots were fired, police said.
Document does not state how many men were involved, or that they were arrested.
Another sample: Sample #32 (test set)
Document: Only 90 will be returned to Stormont - compared to 108 from previous assembly polls. Out of the 228 candidates, 70 are women. The election will take place on 2 March. Once again the DUP is fielding the most candidates with 38, followed by Sinn Féin on 34. The Ulster Unionist Party has 24 candidates, while the SDLP and Alliance have 21 each. The Green Party is fielding 18 candidates, the TUV, 14, the Conservatives 13 and People Before Profit seven. The Workers Party has five candidates in the race, the cross-community Labour Alternative four, the PUP and the Citizens Independent Social Thought Alliance three each and the UKIP one. There are also 22 independent candidates in the field. West Tyrone, East Londonderry and East Antrim have the largest number of candidates standing, with 15 going on the ballot paper in each. The constituency with the fewest - nine - is Newry and Armagh.
Summary: A total of 228 candidates will contest the Northern Ireland Assembly election next month - 48 fewer than last time.
What's wrong: The document has nothing to indicate that the election is taking place "next month", though it is mentioned in the summary. Also, "48 candidates lesser than last time" - another piece of info not in the original document.
Out of the ~10 samples I've randomly seen so far, 7 of them have issues such as this. I'm not sure if I am misunderstanding the task, but I would assume that all information in summary must be sourced from the document alone?
Another example (document 9362 in test):
Document: Commuters posted pictures of themselves wading through water outside New Malden station on Thursday evening. Thames Water said the flooding was caused by a burst water main on Coombe Road. It apologised to customers but said it could not estimate how many people were affected. Police and London Fire Brigade attended the scene, while trains were not stopping at the station. A Thames Water spokesman said: "We are sorry to anyone affected by the flooding in the New Malden area and to any customers who may be experiencing low pressure or no water. "Our engineers are on site and are working to isolate the burst pipe and stop the leak."
Summary: A burst water main has caused flooding outside a south-west London station.
This summary is still mostly fair - a human reader would be able to deduce that this happened in a "London station" because the London Fire Brigade attended to the incident - but an average human is not likely to know that New Malden is in "southwest" London, so without outside knowledge, making this summary, too, would be pretty difficult.
I too have found the same issue. Looking just at short articles (<120 words), four of the first five contain information in the summary that does not appear in the article. In some cases the article does not make sense without first reading the summary.
Text:
The crash happened about 07:20 GMT at the junction of the A127 and Progress Road in Leigh-on-Sea, Essex.
The man, who police said is aged in his 20s, was treated at the scene for a head injury and suspected multiple fractures, the ambulance service said.
He was airlifted to the Royal London Hospital for further treatment.
The Southend-bound carriageway of the A127 was closed for about six hours while police conducted their initial inquiries.
A spokeswoman for Essex Police said it was not possible comment to further as this time as the "investigation is now being conducted by the IPCC".
Summary:
A jogger has been hit by an unmarked police car responding to an emergency call, leaving him with "serious life-changing injuries".
Text:
23 October 2015 Last updated at 17:44 BST
It's the highest rating a tropical storm can get and is the first one of this magnitude to hit mainland Mexico since 1959.
But how are the categories decided and what do they mean? Newsround reporter Jenny Lawrence explains.
Summary:
Hurricane Patricia has been rated as a category 5 storm.
Text:
Spurs boss Mauricio Pochettino said the 20-year-old would be out for "a few weeks" after leaving him out of his squad to play Arsenal on Sunday.
Pochettino said Alli "twisted his knee in a clash with a team-mate".
England play Scotland on Friday and Spain the following Tuesday at Wembley.
"I hope it is not a big issue, it's bad luck, he's an important player for us," Pochettino added.
"He will be out for a few weeks. We need to assess him today, tomorrow. That is football and sometimes it happens."
Summary:
Tottenham midfielder Dele Alli has been ruled out of England's World Cup qualifier with Scotland and friendly against Spain after suffering a knee injury in training.
Text:
The 24-year-old spent six seasons with the north London side and has previously spent time playing in the second tier with Bedford Blues.
The Exiles have not disclosed the length of the former England under-20 international's contract.
"Ben is a great acquisition," director of rugby Nick Kennedy said.
"He has Championship experience which will be very useful as we gear up for what will be a very competitive campaign."
Summary:
Full-back Ben Ransom has joined Championship side London Irish from Premiership and European Champions Cup winners Saracens.
This is the only one where the summary does not add extra information:
Text:
An internal prison report seen by the BBC says the the inmate ran down a landing with the keys at HMP Wayland.
"As he was being restrained another prisoner attempted to grab another officer's keys," the report adds.
A Prison Service spokesman said both men had been transferred to a higher security jail.
They also face additional time added to their sentences.
Both men were "quickly apprehended" during the incident on A wing at about 09:00 BST on 27 May, the report states.
Wayland, near Watton in Norfok, is a Category C men's prison with just over 1,000 inmates.
Summary:
An inmate at a prison grabbed keys from an officer and, while he was being restrained, a second prisoner tried to take another set of keys.
Thanks for reporting, @ardula99 and @mattgwwalker .
Please note that this kind of issues are related to the original source data and how it was created: the summary was automatically created by extracting the first sentence of the text.
You can find more details about how they created their dataset in the corresponding paper: Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarization
Also note that for this kind of issues you should contact the authors/creators of the original data instead: https://github.com/EdinburghNLP/XSum/issues
See related issue about the original source data reported here on the Hugging Face: This data is broken???
and my reply there: https://huggingface.co/datasets/xsum/discussions/4#63bd575dbb80ec4ef14585f5