Skip to content

Extraction-based tool that summarizes English language texts.

License

Notifications You must be signed in to change notification settings

da-cali/textSummarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textSummarizer

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'.

See the code here.

Run it:

  1. Clone this repository:
    git clone https://github.com/da-cali/textSummarizer
    
  2. Open folder:
    cd textSummarizer
    
  3. Load swipl:
    swipl
    
  4. Load main:
    [main].
    
  5. Get a summary of 5 sentences and 5 keywords of one of our sample texts:
    summary(5,'elephants.txt',Keywords,Summary).
    
For larger texts increase the stack limit: ?- set_prolog_flag(stack_limit, 5 000 000 000). % (5gb)

Authors:

Louise Brett, Dan Castillo, Michael Ton.

About

Extraction-based tool that summarizes English language texts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages