Unsupervised extraction of local and global keywords from a single text
Lida Aleksanyan, Armen E. Allahverdyan
TL;DR
This work introduces a corpus-independent, unsupervised framework for extracting keywords from a single text by analyzing the spatial distribution of words and its sensitivity to random permutations. By comparing the second moment of the word-gap distribution before and after permutation, the method identifies global keywords (spread across the text) and local keywords (clustered in specific parts), and it demonstrates topic extraction capabilities. Across several long literary works, the approach yields higher precision and recall than LUHN, YAKE, and related baselines, and it robustly transfers across English, Russian, and French, while also enabling a chapter-based alternative that relates keywords to discourse structure. The findings have implications for discourse analysis and topic extraction in literature and can be extended to n-grams and co-occurrence analyses, with future work aimed at improving models of random text and applying the method to shorter texts.
Abstract
We propose an unsupervised, corpus-independent method to extract keywords from a single text. It is based on the spatial distribution of words and the response of this distribution to a random permutation of words. As compared to existing methods (such as e.g. YAKE) our method has three advantages. First, it is significantly more effective at extracting keywords from long texts. Second, it allows inference of two types of keywords: local and global. Third, it uncovers basic themes in texts. Additionally, our method is language-independent and applies to short texts. The results are obtained via human annotators with previous knowledge of texts from our database of classical literary works (the agreement between annotators is from moderate to substantial). Our results are supported via human-independent arguments based on the average length of extracted content words and on the average number of nouns in extracted words. We discuss relations of keywords with higher-order textual features and reveal a connection between keywords and chapter divisions.
