Shortens the paragraph depending on the given keywords. Levenshtein distance method is used for keyword similarity detection.
In order to clone
the complete content of this folder use the command:
git clone git@github.com:redrussianarmy/paragraph-shortener.git
root
└── shortener.py
└── yourmain.py
└── ...
from shortener import ParagraphShortener
shortener = ParagraphShortener()
result = shortener.run(keyword, paragraph)