Jurnal Ilmu Komputer dan Informasi
Vol. 16 No. 1 (2023): Jurnal Ilmu Komputer dan Informasi (Journal of Computer Science and Informatio

Poetry Generation for Indonesian Pantun: Comparison Between SeqGAN and GPT-2

Emmanuella Anggi Siallagan (Faculty of Computer Science Universitas Indonesia)
Ika Alfina (Faculty of Computer Science Universitas Indonesia)



Article Info

Publish Date
01 Mar 2023

Abstract

Pantun is a traditional Malay poem consisting of four lines: two lines of deliverance and two lines of messages. Each ending-line word in pantun forms an ABAB rhyme pattern. In this work, we compare the performance of Sequence Generative Adversarial Nets (SeqGAN) and Generative Pre-trained Transformer 2 (GPT-2) in automatically generating Indonesian pantun. We also created the first publicly available Indonesian pantun dataset that consists of 7.8K pantun. We evaluated how well each model produced pantun by its lexical richness and its formedness. We introduced the evaluation of pantun with two aspects: structure and rhyme. GPT-2 performs better with a margin of 29.40% than SeqGAN in forming the structure, 35.20% better in making rhyming patterns, and 0.04 difference in giving richer vocabulary to its generated pantun.

Copyrights © 2023






Journal Info

Abbrev

JIKI

Publisher

Subject

Computer Science & IT Library & Information Science

Description

Jurnal Ilmu Komputer dan Informasi is a scientific journal in computer science and information containing the scientific literature on studies of pure and applied research in computer science and information and public review of the development of theory, method and applied sciences related to the ...