Skip to content

DanielPerezJensen/samenvattinger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An automatic summarizer written in Python3

Based on cosine similarity. Every sentence is compared to every other sentence to allocate points to the sentences that are most similar to all other sentences in the string. The sentences with the most points are then put into the summarization in the order they are found within the string.

Usage:

python summarizer.py <filename>.txt

Alternatively:

You can import the summarizer function into your own programming like so.

import summarizer as sm

string = "<some text>"
# language is the language of the original string, english is used by default
# value is the length of the summarization as a percentage of the original string.
summarized-string = sm.summarize(string, language=<some language>, value=<some float between 0.1 and 1>)

About

Automatically summarizes given file/string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages