A text summarization and keyword extraction package
TextRank implementation for text summarization and keyword extraction in Python
- Text summarization
- Keyword extraction
- Text modeling with graph and gexf exportation
>>> text = "Automatic summarization is the process of reducing a text document with a computer program in order to create a summary that retains the most important points of the original document. As the problem of information overload has grown, and as the quantity of data has increased, so has interest in automatic summarization. Technologies that can make a coherent summary take into account variables such as length, writing style and syntax. An example of the use of summarization technology is search engines such as Google. Document summarization is another." >>> from summa import summarizer >>> print summarizer.summarize(text) 'Automatic summarization is the process of reducing a text document with a computer program in order to create a summary that retains the most important points of the original document.'
>>> from summa import keywords >>> print keywords.keywords(text) document automatic summarization technologies technology
This software depends on NumPy and Scipy, two Python packages for scientific computing. You must have them installed prior to installing summa:
pip install summa
This version has been tested under Python 2.7
cd path/to/folder/summa/ python textrank.py -t FILE
>>> from summa import export >>> export.gexf_export(text, path="graph.gexf")
Summa is open source software released under the The MIT License (MIT). Copyright (c) 2014 - now Summa NLP
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size summa-0.0.5.tar.gz (38.5 kB)||File type Source||Python version None||Upload date||Hashes View|