An extraction-based tool that summarizes an English language text using Prolog and WordNet.
Like this:
?- summary(5,'messi.txt',Keywords,Summary).
Keywords = ["messi", "ronaldo", "player", "goal", "being"],
Summary = 'If Cristiano Ronaldo didn’t exist, would Lionel Messi have to invent him?.
As appealing as that picture might be, however, it is probably a false one — from Messi’s
perspective, at least. He might show it in a different way, but Messi is just as competitive
as Ronaldo. Rather than being a better player than Ronaldo, Messi’s main motivations — according
to the people who are close to him — are being the best possible version of Lionel Messi,
and winning as many trophies as possible. Do Messi and Ronaldo inspire each other?
“Maybe subconsciously in some way they’ve driven each other on,” said Rodgers'.
Run it:
- Clone this repository:
git clone https://github.com/da-cali/textSummarizer
- Open folder:
cd textSummarizer
- Load swipl:
swipl
- Load main:
[main].
- Get a summary of 5 sentences and 5 keywords of one of our sample texts:
summary(5,'elephants.txt',Keywords,Summary).