Skip to content

Shortens the paragraph depending on the given keywords using Levenshtein distance

Notifications You must be signed in to change notification settings

redrussianarmy/paragraph-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Paragraph Shortener

Shortens the paragraph depending on the given keywords. Levenshtein distance method is used for keyword similarity detection.

Installation

In order to clone the complete content of this folder use the command:

git clone git@github.com:redrussianarmy/paragraph-shortener.git

Usage

root  
└── shortener.py  
└── yourmain.py  
└── ...
from shortener import ParagraphShortener
shortener = ParagraphShortener()
result = shortener.run(keyword, paragraph)