A library for automatically generating an abstract from a document using unsupervised techniques.
Project description
luhn_abstract is a Python module for automatically generating an abstract from a document using unsupervised techniques. The Luhn paper was published in 1958, and the general concept of the algorithm is outlined in the diagram below.
Dependencies
luhn_abstract requires:
- Python (>=3.6)
- NumPy
- NLTK
- Pandas
Example
See the GitHub repository for a Jupyter notebook with examples.
Quantile Significance Lower = 1
Quantile Significance Upper = 31
Machine learning approaches, which include both statistical and neural networks,
on the other hand, have many advantages over the symbolic approach: Although
rule-based systems for manipulating symbols were still in use in 2020, they
have become mostly obsolete with the advance of LLMs in 2023. [22.5000] [8] In
2003, word n-gram model, at the time the best statistical algorithm, was
outperformed by a multi-layer perceptron (with a single hidden layer and
context length of several words trained on up to 14 million of words with a
CPU cluster in language modelling) by Yoshua Bengio with co-authors. [18.0000]
The premise of symbolic NLP is well-summarized by John Searle's Chinese room
experiment: Given a collection of rules (e.g., a Chinese phrasebook, with
questions and matching answers), the computer emulates natural language
understanding (or other NLP tasks) by applying those rules to the data it
confronts. [17.4222] As an example, George Lakoff offers a methodology to
build natural language processing (NLP) algorithms through the perspective
of cognitive science, along with the findings of cognitive linguistics,[50]
with two defining aspects: Ties with cognitive linguistics are part of the
historical heritage of NLP, but they have been less frequently addressed since
the statistical turn during the 1990s. [16.2881]
Citation
Luhn, Hans Peter. "The Automatic Creation of Literature Abstracts." IBM Journal of Research and Development 2.2 (1958): 159-165.
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
luhn_abstract-0.1.1.tar.gz
(22.2 kB
view details)
File details
Details for the file luhn_abstract-0.1.1.tar.gz.
File metadata
- Download URL: luhn_abstract-0.1.1.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6b42cf39ae431b9f337e4d66995c930dc9a6d068b1aaf65ae5f7d17d16b4fb1
|
|
| MD5 |
edf40c89a29b8b5ddc0d63640c6bf9d7
|
|
| BLAKE2b-256 |
ae38df69f83b99d20bf1e3c9413d03f5e7824c6f0b7e0e1cdf3704478513f765
|