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.4.tar.gz (7.1 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.4-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastlexrank-0.1.4.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

Hashes for fastlexrank-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a8515081d4cd709cbc98f9de945a9a3164b370781468393b7be2a4f094f1b02e
MD5 323866cffc5eb0187da9c95a6c1ece84
BLAKE2b-256 934deab247c8d7330bc2c3b5ad77de01f2a4776e2806bd5ae156cbb504d66510

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastlexrank-0.1.4-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

Hashes for fastlexrank-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7eec850b844cdbded316bb7474d2705220b666b0069fcfa10ee3381c70b04d38
MD5 cf0908157c0fe3670e3e9a88d5f7c6f9
BLAKE2b-256 98abe080420ee9618d88f1b984d6163edae596df1eda029435ecce7a3b7241ce

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