Abstract
Recent advancements of the Artificial Intelligence (AI) have led to the development of large language models (LLMs) that are capable of understanding, analysing, and creating textual data. These language models open a significant opportunity in analyzing the literature and more specifically poetry. In the present work, we employ multiple Bidirectional encoder representations from transformers (BERT) and Generative Pre-trained Transformer (GPT) based language models to analyze the works of two prominent Persian poets: Jalal al-Din Muhammad Rumi (Rumi) and Parvin E'tesami. The main objective of this research is to investigate the capability of the modern language models in grasping complexities of the Persian poetry and explore potential correlations between the poems' sentiment and their meters. Our findings in this study indicates that GPT4o language model can reliably be used in analysis of Persian poetry. Furthermore, the results of our sentiment analysis revealed that in general, Rumi's poems express happier sentiments compared to Parvin E'tesami's poems. Furthermore, comparing the utilization of poetic meters highlighted Rumi's poems superiority in using meters to express a wider variety of sentiments. These findings are significant as they confirm that LLMs can be effectively applied in conducting computer-based semantic studies, where human interpretations are not required, and thereby significantly reducing potential biases in the analysis.
Abstract (translated)
近期的人工智能(AI)进步促使了大型语言模型(LLMs)的发展,这些模型能够理解、分析和生成文本数据。这些语言模型为文学分析提供了重要机会,特别是在诗歌领域。在本项研究中,我们使用基于双向编码器表示的变压器(BERT)和生成式预训练变压器(GPT)的语言模型来分析两位著名波斯诗人的作品:朱拉·丁·穆罕默德·鲁米(鲁米)和帕尔文·埃特萨米。本研究的主要目的是探讨现代语言模型在理解波斯诗歌复杂性方面的能力,并探索诗歌情感与韵律之间的潜在关联。 我们的研究表明,GPT4o 语言模型可以可靠地用于分析波斯诗歌。此外,我们的情感分析结果显示,鲁米的诗作总体上比帕尔文·埃特萨米的诗作表现出更积极的情绪。通过比较诗句节奏的使用情况,进一步突显了鲁米作品在利用不同情绪表达方面的优越性。 这些发现具有重要意义,因为它们证实了LLMs可以在进行计算机语义研究中发挥有效作用,在这种情况下不需要人类解释,从而大大减少了分析中的潜在偏见。
URL
https://arxiv.org/abs/2603.11254