Skip to content

A simple experiment with text summarization in Python

Notifications You must be signed in to change notification settings

foprel/text-summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smmry

A Python text summarizer inspired by Smmry and this tutorial. It contains the following functions:

  • sent_tokenizer: splits text into words per sentence
  • preprocess: removes punctuation and removes stopwords
  • tag_pos: part-of-speech tagger that selects adjectves (ADJ) and nouns(NN)
  • stem: stems words in sentences
  • text_rank: ranks sentences based on text rank algorithm
  • build_similarity_matrix: creates a cosine similarity matrix based on tfidf vectors
  • summarize: runs through all the steps above and generates a summary

Releases

No releases published

Packages

No packages published

Languages