arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.07087cs.CLcs.AI
收藏

基于LSTM的文本生成:历史数据集研究

LSTM-Based Text Generation: A Study on Historical Datasets

Çankırı Karatekin University(昌克勒·卡拉泰金大学);Kırıkkale University(克勒克卡莱大学)

Mustafa Abbas Hussein Hussein, Serkan Savaş

AI总结:

本研究探索LSTM网络在文本生成中的应用,使用莎士比亚和尼采的历史数据集训练模型,验证了其高准确率与高效性,为自然语言处理及历史语言学研究提供了新思路。

摘要:

本文对长短期记忆(Long Short-Term Memory,LSTM)网络在文本生成领域的应用展开探索,重点研究莎士比亚(Shakespeare)与尼采(Nietzsche)相关历史数据集的运用。LSTM因在处理序列数据方面的有效性而闻名,本研究将其用于建模历史文本中固有的复杂语言模式与结构。研究表明,基于LSTM的模型在历史数据集上训练后,不仅能生成语言丰富、语境相关的文本,还能为探究语言模式随时间的演变提供洞见。研究结果显示,该模型在预测尼采作品文本时准确率高且效率优异,损失值较低,训练迭代次数为100次;模型准确率达0.9521,表明其准确率很高;模型损失为0.2518,体现了其有效性。该模型预测莎士比亚作品文本的准确率为0.9125,说明错误率较低;其训练迭代次数同样为100次,与在尼采数据集上的效率相当。这种效率证明了模型设计与训练方法的有效性,尤其是在处理复杂文学文本时。本研究展示了LSTM网络在文本生成中的通用性,为自然语言处理领域做出贡献,也为历史语言学及更多领域的未来探索提供了路径。

英文摘要:

This paper presents an exploration of Long Short-Term Memory (LSTM) networks in the realm of text generation, focusing on the utilization of historical datasets for Shakespeare and Nietzsche. LSTMs, known for their effectiveness in handling sequential data, are applied here to model complex language patterns and structures inherent in historical texts. The study demonstrates that LSTM-based models, when trained on historical datasets, can not only generate text that is linguistically rich and contextually relevant but also provide insights into the evolution of language patterns over time. The finding presents models that are highly accurate and efficient in predicting text from works of Nietzsche, with low loss values and a training time of 100 iterations. The accuracy of the model is 0.9521, indicating high accuracy. The loss of the model is 0.2518, indicating its effectiveness. The accuracy of the model in predicting text from the work of Shakespeare is 0.9125, indicating a low error rate. The training time of the model is 100, mirroring the efficiency of the Nietzsche dataset. This efficiency demonstrates the effectiveness of the model design and training methodology, especially when handling complex literary texts. This research contributes to the field of natural language processing by showcasing the versatility of LSTM networks in text generation and offering a pathway for future explorations in historical linguistics and beyond.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑