Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastlexrank-0.1.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastlexrank-0.1.3-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file fastlexrank-0.1.3.tar.gz.

File metadata

  • Download URL: fastlexrank-0.1.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.6 Darwin/23.0.0

File hashes

Hashes for fastlexrank-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ba7fe7d218dae3ec10e4f9b6307f69240f8427e57317a16026bd98322eda6376
MD5 c09747a77537356c8a03fa7ed3a44cca
BLAKE2b-256 5f81db77f9677959036660a45e7f4542abc2a121cc46ac073f2f4f82d198855f

See more details on using hashes here.

File details

Details for the file fastlexrank-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: fastlexrank-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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

Hashes for fastlexrank-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9dccefb2264b19e0b31e690b2e655f5939fb053b0f02b6a79b2a5451a9d8d97b
MD5 1763296c7879b1ebfcd7d74f751fb57b
BLAKE2b-256 5edc1473e54fa9b39b9c8fb43ab7a60984e9de6acbaeb05e36a5ead21e7d0a11

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page