Text generation with recurrent neural networks
2024
0 views
0 downloads
Advisor: Doç. Dr. Serkan Savaş
Abstract (EN)
This study delves into a comprehensive study aimed at advancing the field of natural language processing (NLP) through the development of a refined language model. This model leverages the power of recurrent neural networks (RNN) with Long Short Term Memory (LSTM) layers, focusing on contextual understanding for enhanced text generation. The study meticulously compares the performance of this model against historical datasets attributed to Nietzsche and Shakespeare, showcasing its effectiveness and efficiency in handling complex linguistic structures. At the core of this research is the objective to surpass traditional text generation methodologies by integrating advanced contextual analysis into the training of language models. This approach is rooted in the hypothesis that a deeper understanding of context and the semantic relationships between words can significantly improve the accuracy and coherence of generated text. To test this hypothesis, the study employs a state-of-the-art RNN architecture equipped with LSTM layers, known for their capacity to retain long-term dependencies in data sequences, a crucial feature for understanding context in language. The methodology adopted in this study is multi-faceted. Firstly, the research team applies a clustering technique to analyze the context vectors derived from the training data. This technique involves calculating the distances between words within these vectors and assessing their semantic proximity. This method is instrumental in identifying and emphasizing words that are pivotal in conveying meaning within sentences. Subsequently, the model is trained using these context vectors, alongside the traditional input data, to create a more linguistically adept generation model. The results of the study are indicative of the model's superiority in text generation. When applied to Nietzsche's dataset, the model achieved an impressive accuracy of 95.21% with a loss of just 0.25. In contrast, the model's performance on Shakespeare's data, though slightly lower, was still remarkable, achieving an accuracy of 91.25% and a loss of 0.3876. These results not only affirm the efficacy of using context vectors in language model training but also underscore the model's versatility across different literary styles and epochs. Moreover, the study introduces an innovative feedback mechanism within the training process. This mechanism allows for continuous evaluation and adjustment of the model, ensuring that training is halted only when the model reaches a satisfactory level of accuracy and reliability. This iterative approach to training and testing guarantees the development of a robust model that is well-tuned to the nuances of human language. In conclusion, this study makes a significant contribution to the field of NLP by demonstrating the effectiveness of context-based training in language models. The use of LSTM layers, in conjunction with clustering methods for context vector analysis, provides a novel approach to understanding and generating complex text structures. The success of this model on diverse datasets highlights its potential applicability in various NLP tasks, paving the way for more sophisticated and accurate text generation technologies.
Author
Dr. Mustafa Abbas Husseın Husseın
Institution

Çankırı Karatekin Üniversitesi
Bilgisayar Bilimi ve Mühendisliği Bilim Dalı
How to Cite
Mustafa Abbas Husseın Husseın (Master Thesis). Text generation with recurrent neural networks, 2024, Çankırı Karatekin Üniversitesi.
License
Tüm Hakları Saklıdır
This work is shared under the specified license terms.
More theses from Çankırı Karatekin Üniversitesi
- Evaluation of university staff's attitudes to gender roles (The case of Çankırı Karatekin University)(2023)
- The effects of 2001 economic crisis on diversification strategies of business groups in Turkey(2011)
- On the quality of brand loyalty and brand and product benefit(2013)
- The moderating role of conflict management styles on the effect of conflict on workplace bullying(2018)
- An example about weeping for a wife by the poets deek al Jin al Homsi and Nizar Qabbani between ancient Ghazal and modern romanticism(2022)
- The effects of perceived service quality dimensions in university libraries on students' satisfaction, value and loyalty formations(2023)