Last active
September 20, 2021 03:28
-
-
Save Nithilaa/47413b794d6c9f05d2e57893147fafb6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get summary with classical LexRank algorithm | |
summary = lxr.get_summary(sentences, summary_size=2, threshold=.1) | |
print(summary) | |
# get summary with continuous LexRank | |
summary_cont = lxr.get_summary(sentences, threshold=None) | |
print(summary_cont) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment