A streamlined and approximate implementation of the LexRank algorithm for rapid text summarization.
Project description
FastLexRank
A streamlined and approximate implementation of the LexRank algorithm for rapid text summarization.
LexRank for large scale data
The original implementation of LexRank utilizes the power method to calculate the eigenvector associated with an eigenvalue of 1. In the foundational paper by Erkan and Radev[1], they mathematically demonstrated why the normalized similarity matrix is a stochastic matrix and will, therefore, converge.
However, a key challenge with the original LexRank algorithm is its dependence on the power method, which often requires multiple iterations to converge. For a large corpus, matrix multiplication can become a bottleneck, slowing down the computation considerably.
To address this issue, we introduce an approximate approach that efficiently computes a score for each sentence while retaining the essential characteristic of relative centrality. Our modified method offers significant speed improvements in LexRank calculations and delivers reliable results.
Reference
[1] Erkan, G., & Radev, D. R. (2004). Lexrank: Graph-based lexical centrality as salience in text summarization. Journal of artificial intelligence research, 22, 457-479.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastlexrank-0.1.2.tar.gz.
File metadata
- Download URL: fastlexrank-0.1.2.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.6 Darwin/23.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55e08259fd02714801d2d0917ea350835d2c80889041208c413183f56660d906
|
|
| MD5 |
eec7a912c6c546f3ad03ae8ea99af041
|
|
| BLAKE2b-256 |
84dc1cde871ec0a68d8fc82c4e8cc0fdd5faf602488203a1c9269ccc04d5c134
|
File details
Details for the file fastlexrank-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fastlexrank-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.6 Darwin/23.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8776e097906bbe44f0ea253b1995369c71a7fcb0503178740bc09b8d8c632037
|
|
| MD5 |
6b94204df959779c5d75d4dcd13bd98e
|
|
| BLAKE2b-256 |
57f1bc886a2fd1f7f34add7c1e5933fad994120a32460b8af0131ada0f14a880
|