An RNN Model for Generating Sentences with a Desired Word at a Desired Position

Generating sentences with a desired word is useful in many natural language processing tasks. State-of-the-art recurrent neural network (RNN)-based models mainly generate sentences in a left-to-right manner, which does not allow explicit and direct constraints on the words at arbitrary positions in...

Full description

Bibliographic Details
Main Authors: Tianbao Song, Jingbo Sun, Yinbing Zhang, Weiming Peng*, Jihua Song
Format: Article
Language:English
Published: Faculty of Mechanical Engineering in Slavonski Brod, Faculty of Electrical Engineering in Osijek, Faculty of Civil Engineering in Osijek 2020-01-01
Series:Tehnički Vjesnik
Subjects:
RNN
Online Access:https://hrcak.srce.hr/file/340463
id doaj-0be580043f904131945e6d0528e08720
record_format Article
spelling doaj-0be580043f904131945e6d0528e087202020-11-25T02:36:23ZengFaculty of Mechanical Engineering in Slavonski Brod, Faculty of Electrical Engineering in Osijek, Faculty of Civil Engineering in Osijek Tehnički Vjesnik1330-36511848-63392020-01-012718188An RNN Model for Generating Sentences with a Desired Word at a Desired PositionTianbao Song0Jingbo Sun1Yinbing Zhang2Weiming Peng*3Jihua Song4Beijing Normal University, No. 19, Xinjiekouwai St, Haidian District, Beijing, 100875, P. R. ChinaBeijing Normal University, No. 19, Xinjiekouwai St, Haidian District, Beijing, 100875, P. R. ChinaBeijing Normal University, No. 19, Xinjiekouwai St, Haidian District, Beijing, 100875, P. R. ChinaBeijing Normal University, No. 19, Xinjiekouwai St, Haidian District, Beijing, 100875, P. R. ChinaBeijing Normal University, No. 19, Xinjiekouwai St, Haidian District, Beijing, 100875, P. R. ChinaGenerating sentences with a desired word is useful in many natural language processing tasks. State-of-the-art recurrent neural network (RNN)-based models mainly generate sentences in a left-to-right manner, which does not allow explicit and direct constraints on the words at arbitrary positions in a sentence. To address this issue, we propose a generative model of sentences named Coupled-RNN. We employ two RNN's to generate sentences backwards and forwards respectively starting from a desired word, and inject position embeddings into the model to solve the problem of position information loss. We explore two coupling mechanisms to optimize the reconstruction loss globally. Experimental results demonstrate that Coupled-RNN can generate high quality sentences that contain a desired word at a desired position.https://hrcak.srce.hr/file/340463desired wordlexically constrainedRNNsentence generation
collection DOAJ
language English
format Article
sources DOAJ
author Tianbao Song
Jingbo Sun
Yinbing Zhang
Weiming Peng*
Jihua Song
spellingShingle Tianbao Song
Jingbo Sun
Yinbing Zhang
Weiming Peng*
Jihua Song
An RNN Model for Generating Sentences with a Desired Word at a Desired Position
Tehnički Vjesnik
desired word
lexically constrained
RNN
sentence generation
author_facet Tianbao Song
Jingbo Sun
Yinbing Zhang
Weiming Peng*
Jihua Song
author_sort Tianbao Song
title An RNN Model for Generating Sentences with a Desired Word at a Desired Position
title_short An RNN Model for Generating Sentences with a Desired Word at a Desired Position
title_full An RNN Model for Generating Sentences with a Desired Word at a Desired Position
title_fullStr An RNN Model for Generating Sentences with a Desired Word at a Desired Position
title_full_unstemmed An RNN Model for Generating Sentences with a Desired Word at a Desired Position
title_sort rnn model for generating sentences with a desired word at a desired position
publisher Faculty of Mechanical Engineering in Slavonski Brod, Faculty of Electrical Engineering in Osijek, Faculty of Civil Engineering in Osijek
series Tehnički Vjesnik
issn 1330-3651
1848-6339
publishDate 2020-01-01
description Generating sentences with a desired word is useful in many natural language processing tasks. State-of-the-art recurrent neural network (RNN)-based models mainly generate sentences in a left-to-right manner, which does not allow explicit and direct constraints on the words at arbitrary positions in a sentence. To address this issue, we propose a generative model of sentences named Coupled-RNN. We employ two RNN's to generate sentences backwards and forwards respectively starting from a desired word, and inject position embeddings into the model to solve the problem of position information loss. We explore two coupling mechanisms to optimize the reconstruction loss globally. Experimental results demonstrate that Coupled-RNN can generate high quality sentences that contain a desired word at a desired position.
topic desired word
lexically constrained
RNN
sentence generation
url https://hrcak.srce.hr/file/340463
work_keys_str_mv AT tianbaosong anrnnmodelforgeneratingsentenceswithadesiredwordatadesiredposition
AT jingbosun anrnnmodelforgeneratingsentenceswithadesiredwordatadesiredposition
AT yinbingzhang anrnnmodelforgeneratingsentenceswithadesiredwordatadesiredposition
AT weimingpeng anrnnmodelforgeneratingsentenceswithadesiredwordatadesiredposition
AT jihuasong anrnnmodelforgeneratingsentenceswithadesiredwordatadesiredposition
AT tianbaosong rnnmodelforgeneratingsentenceswithadesiredwordatadesiredposition
AT jingbosun rnnmodelforgeneratingsentenceswithadesiredwordatadesiredposition
AT yinbingzhang rnnmodelforgeneratingsentenceswithadesiredwordatadesiredposition
AT weimingpeng rnnmodelforgeneratingsentenceswithadesiredwordatadesiredposition
AT jihuasong rnnmodelforgeneratingsentenceswithadesiredwordatadesiredposition
_version_ 1724800519108558848