/textrankr

TextRank for Korean.

Primary LanguagePythonMIT LicenseMIT

TextRank for Korean

Reorder sentences using TextRank algorithm. Click here to see how to install KoNLPy properly.

Upgraded version named lexrankr using LexRank is available too!

Installation

pip install textrankr

Usage

from __future__ import print_function
from textrankr import TextRank

textrank = TextRank(your_text_here)
print(textrank.summarize())

Test

python -m tests.test