Text Summarisation by TextRank!

AI Insights

Some might say “Time is the human’s most valuable resource.” and it would be nice if you can buy time. Unfortunately, time is not on the shelf. Only thing we can do must be “save the time.” In the past secretaries assisted their bosses by summarise and brief all the tasks because those busy high-level managements did not have enough time to read all information by their own. However, have you ever wonder if even a professional secretary could really handle loads of informations everyday? The answer is “NO” . So, should a company hire more people? ..If we were living in 90s , then it probably YES but since we are now living in a digital age, I got a better idea for you! It is to use machine to do those tasks. Ready to Save more time and money? Let’s see how it does!

Since 2016 TextRank algorithm has been published to the world, It came with two abilities, Keywords Extraction and Sentences Extraction. Here we will show you only the latter one. The concept is simple as its name, just apply it into the Article Summarisation task. First of all, the whole article will be separated into sentences and every sentences will be assigned into relevance scores (the scores tell us how these sentences relate to the whole article). After that all of the sentences will be ranked according to their scores when the highest score represents the most relevant sentence. Let see how it works on real articles.

Ronaldo moved to Juventus announcement is the first example. Full version of this article contains almost five hundred words and was summarised to the following

The 33-year-old will end a successful spell at the Santiago Bernabeu to join the Serie A side in a deal that will cost upwards of €100 million Real Madrid have confirmed Cristiano Ronaldo will leave the club to join Juventus. “Real Madrid CF communicates that, in response to the will and request expressed by the player Cristiano Ronaldo, he has agreed to transfer to Juventus FC.” The announcement was followed by an open letter from Ronaldo, in which he thanked fans for their "love and affection" during his time there.

This article has shorten less than a hundred words (technically the summary version can be shorter or longer depends on your setting). As I told you before this is simple but, it magically works! Please keep in mind that this is not a paraphrase version, it just help selecting the most relevant sentences that are able to represent the main ideas of articles. Well now Lets try summaries on a longer one (~1600 words) like 13 Thai rescued out of the cave. And see the result below

The Thai cave rescue ended in success. Twelve young boys and their soccer coach are safe, freed from the floods deep inside a cave in northern Thailand where they had been trapped in for more than two weeks. When a Thai military unit had finished dismantling a section of water pumps that had proved so crucial in the successful operation, they jumped into their open-topped vehicle near the Tham Luang cave on Wednesday, smiling triumphantly to the crowd of cheering supporters who had stayed on to give their heroes a proper send off. Expert divers from the Thai Navy SEALs, experienced in conventional diving situations, were faced with an unprecedented challenge. But that didn't stop local officials from mobilizing a team of 110 Thai SEALs, hundreds of soldiers and other volunteers, determined first to find the boys and then, somehow, bring them back. Whitehouse, a retired cave diver and vice chairman of the British Cave Rescue Council, was aware of the Thai rescue effort. Vernon Unsworth, an experienced British caver who now lives in northern Thailand not far from the Tham Luang cave, had already alerted his contacts back in the UK to the predicament faced by the Thai Navy SEALs. The cave diving community is small, and the number of people capable of carrying out complex operations such as the one required to find and free the Wild Boar soccer team, smaller still. The Thai Embassy in London secured three seats on the next Thai Airways flight to Bangkok; John Volanthen and Rick Stanton, an IT consultant and a former firefighter who just happened to be two of the most experienced cave divers in the world, were dispatched to London's Heathrow Airport along with a cave diving veteran, Robert Harper. It's like driving in fog with your headlights on." But it wasn't until their third attempt at penetrating the caves, on July 2, that Volanthen and Stanton stumbled upon the boys. Facing him, on a ledge about a meter above the water, were 12 boys and their coach. "The only thing is that once we found them, we began thinking, now what?" Yookongkaew said the original plan was to keep the boys and their coach inside the cave for a month or more while rescue workers found a way to bring them out, perhaps via another entrance or until the water levels had dropped. Divers on site had described the conditions as some of the most extreme they have ever faced, and the boys didn't know how to swim, let alone dive. As rescuers pondered the best course of action, four Thai divers remained with the boys, stabilizing their health and gradually reintroducing them to food. It was complicated by the July 6 death of former Thai Navy SEAL Saman Kunan, who ran out of air while returning from an operation to deliver oxygen tanks to the cave. Having completed this section, the boys were then handed over to separate, specialist rescue teams, who moved them through the remainder of the cave, much of which they could wade through.

This summary version is approximately 500 words long.Although it misses some details , still it can catch all the climaxes.

In conclusion — from the above examples were shortened into one-fourth length of their full articles or can be shown that it help save you 75% of time spending on reading the full paragraphs without hiring any secretaries, it sounds not bad right? Moreover, with this basic knowledge about python you can also try this summarising module by yourself, here!

Contact us

Drop us a line and we will get back to you