
Viktor Kuzminskyi, Dmytro Lande
Automatic Extraction and Analysis of Direct Speech
from Texts Using
Large Language Model
//
J Theor Comput Sci. (2024), Vol.10 Iss.03 No:1000225. DOI: 10.35248/2376-130X.24.10.225
URL: https://www.longdom.org/open-access/automatic-extraction-and-analysis-of-direct-speech-from-texts-using-large-language-model.pdf
This paper proposes an approach for the automatic extraction of direct quotes from texts using Large Language
Models (LLMs) and their analysis to build semantic networks of authors and concepts. After retrieving relevant
documents, LLMs are employed to extract quotes, their authors and metadata, which are stored in a structured
JavaScript Object Notation (JSON) format. Based on this data, a semantic network is constructed, which is then
clustered using LLMs. The concept of a "swarm of virtual experts" is introduced for more precise extraction of key
concepts. The model illustrates how authors form groups based on shared interests and discussion topics. One of
the innovative aspects of the approach is the automatic generation of cluster names.
Keywords: Quote extraction; Semantic network; Clustering; Swarm of virtual experts; Automatic text analysis; Large
Language Models (LLM)