Long short-term memory(LSTM) units on sequence-based models are being used in translation, question-answering systems, classification tasks due to their capability of learning long-term dependencies. Text generation models, an application of LSTM models are recently popular due to their impressive results. LSTM models applied to natural languages are great in learning grammatically stable syntaxes. But the downside is, the system has no basic idea of the context and it generates text given a set of input words irrespective of the use-case. The proposed system trains the model to generate words given input words along with a context vector. Depending upon the use-case, the context vector is derived for a sentence or for a paragraph. A context vector could be a topic (from topic models) or the word having highest tf-idf weight in the sentence or a vector computed from word clusters. Thus, during the training phase, the same context vector is applied across the whole sentence for each window to predict successive words. Due to this structure, the model learns the relation between the context vector and the target word. During prediction, the user could provide keywords or topics to guide the system to generate words around a certain context. Apart from the syntactic structure in the current text-generation models, this proposed model will also provide semantic consistency. Based on the nature of computing context vectors, the model has been tried out with two variations (tf-idf and word clusters). The proposed system could be applied in question-answering systems to respond with a relevant topic. Also in Text-generation of stories with defined hints. The results should be evaluated manually on how semantically closer the text is generated given the context words.


    Access

    Download


    Export, share and cite



    Title :

    Context based Text-generation using LSTM networks


    Contributors:

    Conference:

    2018 ; Barcelona, Spain


    Publication date :

    2018-11-01


    Type of media :

    Conference paper


    Type of material :

    Electronic Resource


    Language :

    English




    A LSTM based Deep Learning Model for Text Summarization

    Vijaya Saraswathi, R / Chunchu, Ravi Varma / Kunchala, Sushma et al. | IEEE | 2022


    IOT device code translators using LSTM networks

    Cashion, Kelly / Ravindran, Satish / Powar, Nilesh et al. | IEEE | 2017




    Hand Posture Detection of Smartphone Users Using LSTM Networks

    Tan, Song Lim / Ng, Hui Fuang / Ooi, Boon Yaik et al. | TIBKAT | 2019