[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to main content

Chinese Poetry Generation with Metrical Constraints

  • Conference paper
  • First Online:
Natural Language Processing and Chinese Computing (NLPCC 2021)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 13028))

  • 3019 Accesses

Abstract

Poetry is a kind of literary art, which conveys emotion with aesthetic expressions. Poetry automatic generation is challenging because it is required to confirm the semantic representation (content) and metrical constraints (form). Most previous work lacks the effective use of metrical information, resulting in the generated poems may break these constraints, which are essential for poetry. In this paper, we formulate the poetry generation task as a constrained text generation problem. A Transformer-based dual-encoder model is then proposed to force the poetry generation conditioned on both the writing intention and the metrical patterns. We conduct experiments on three popular genres of Chinese classical poetry: quatrains ( ), regulated verse ( ) and Song iambic ( ). Both automatic and human evaluation results confirm that our method (poetry generation with metrical constraints, MCPG) significantly improves metrical compliance of generated poems while maintaining coherence and fluency.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
£29.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
GBP 19.95
Price includes VAT (United Kingdom)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
GBP 79.50
Price includes VAT (United Kingdom)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
GBP 99.99
Price includes VAT (United Kingdom)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    ‘co’, ‘pe’ and ‘ca’ refer to the punctuation respectively.

  2. 2.

    Tone and Rhyme are defined by TongYun (a pioneering book on Chinese rhythm). Learn more at https://sou-yun.cn/mqr.aspx.

  3. 3.

    Code:http://github.com/lipiji/SongNet.

  4. 4.

    A pre-trained model for Chinese classical poetry, developed by Research Center for Natural Language Processing, Computational Humanities and Social Sciences, Tsinghua University. URL: https://github.com/THUNLP-AIPoet/BERT-CCPoem.

  5. 5.

    A poem may have multiple groups of rhymes, especially Song iambic.

References

  1. Bahdanau, D., Cho, K., Bengio, Y.: Neural machine translation by jointly learning to align and translate. In: 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, 7–9 May 2015, Conference Track Proceedings (2015)

    Google Scholar 

  2. Bugliarello, E., Okazaki, N.: Enhancing machine translation with dependency-aware self-attention, pp. 1618–1627. Association for Computational Linguistics (2020)

    Google Scholar 

  3. Chen, H., Yi, X., Sun, M., Li, W., Yang, C., Guo, Z.: Sentiment-controllable Chinese poetry generation, pp. 4925–4931. ijcai.org (2019)

    Google Scholar 

  4. de Cruys, T.V.: Automatic poetry generation from prosaic text, pp. 2471–2480. Association for Computational Linguistics (2020)

    Google Scholar 

  5. Deng, L., et al.: An iterative polishing framework based on quality aware masked language model for Chinese poetry generation, pp. 7643–7650. AAAI Press (2020)

    Google Scholar 

  6. Gervás, P.: An expert system for the composition of formal Spanish poetry. Knowl. Based Syst. 14(3–4), 181–188 (2001)

    Article  Google Scholar 

  7. He, J., Zhou, M., Jiang, L.: Generating Chinese classical poems with statistical machine translation models. In: AAAI (2012)

    Google Scholar 

  8. Jiang, L., Zhou, M.: Generating Chinese couplets using a statistical MT approach. In: COLING, pp. 377–384 (2008)

    Google Scholar 

  9. Kingma, D.P., Ba, J.: Adam: a method for stochastic optimization. In: 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, 7–9 May 2015, Conference Track Proceedings (2015)

    Google Scholar 

  10. Kumar, A., Ahuja, K., Vadapalli, R., Talukdar, P.: Syntax-guided controlled generation of paraphrases. Trans. Assoc. Comput. Linguist. 8, 330–345 (2020)

    Article  Google Scholar 

  11. Li, J., Galley, M., Brockett, C., Gao, J., Dolan, B.: A diversity-promoting objective function for neural conversation models, pp. 110–119. The Association for Computational Linguistics (2016)

    Google Scholar 

  12. Li, J., et al.: Generating classical Chinese poems via conditional variational autoencoder and adversarial training, pp. 3890–3900. Association for Computational Linguistics (2018)

    Google Scholar 

  13. Li, P., Zhang, H., Liu, X., Shi, S.: Rigid formats controlled text generation, pp. 742–751. Association for Computational Linguistics (2020)

    Google Scholar 

  14. Liao, Y., Wang, Y., Liu, Q., Jiang, X.: GPT-based generation for classical Chinese poetry. CoRR arXiv:1907.00151 (2019)

  15. Liu, D., Lv, J., Li, Y.: Generating style-specific Chinese tang poetry with a simple actor-critic model. IEEE Trans. Emerging Top. Comput. Intell. 3(4), 313–321 (2018)

    Article  Google Scholar 

  16. Manurung, H.: An evolutionary algorithm approach to poetry generation (2004)

    Google Scholar 

  17. Peng, H., Parikh, A.P., Faruqui, M., Dhingra, B., Das, D.: Text generation with exemplar-based adaptive decoding, pp. 2555–2565. Association for Computational Linguistics (2019)

    Google Scholar 

  18. Srivastava, N., Hinton, G.E., Krizhevsky, A., Sutskever, I., Salakhutdinov, R.: Dropout: a simple way to prevent neural networks from overfitting. J. Mach. Learn. Res. 15(1), 1929–1958 (2014)

    MathSciNet  MATH  Google Scholar 

  19. Su, H., et al.: Diversifying dialogue generation with non-conversational text, pp. 7087–7097. Association for Computational Linguistics (2020)

    Google Scholar 

  20. Vaswani, A., et al.: Attention is all you need, pp. 5998–6008 (2017)

    Google Scholar 

  21. Wang, Q., et al.: Learning deep transformer models for machine translation. In: Proceedings of the 57th Conference of the Association for Computational Linguistics, ACL 2019, Florence, Italy, 28 July–2 August 2019, Volume 1: Long Papers, pp. 1810–1822 (2019)

    Google Scholar 

  22. Wang, Q., Luo, T., Wang, D., Xing, C.: Chinese song iambics generation with neural attention-based model, pp. 2943–2949. IJCAI/AAAI Press (2016)

    Google Scholar 

  23. Wang, X., Pham, H., Yin, P., Neubig, G.: A tree-based decoder for neural machine translation, pp. 4772–4777. Association for Computational Linguistics (2018)

    Google Scholar 

  24. Wang, Z., et al.: Chinese poetry generation with planning based neural network. In: COLING, pp. 1051–1060 (2016)

    Google Scholar 

  25. Xiao, T., Zhu, J., Zhang, H., Li, Q.: NiuTrans: an open source toolkit for phrase-based and syntax-based machine translation. In: Proceedings of the ACL 2012 System Demonstrations, pp. 19–24 (2012)

    Google Scholar 

  26. Yan, R.: I, poet: automatic poetry composition through recurrent neural networks with iterative polishing schema. In: IJCAI, pp. 2238–2244 (2016)

    Google Scholar 

  27. Yan, R., Jiang, H., Lapata, M., Lin, S., Lv, X., Li, X.: I, poet: automatic Chinese poetry composition through a generative summarization framework under constrained optimization. In: IJCAI, pp. 2197–2203 (2013)

    Google Scholar 

  28. Yang, C., Sun, M., Yi, X., Li, W.: Stylistic Chinese poetry generation via unsupervised style disentanglement, pp. 3960–3969. Association for Computational Linguistics (2018)

    Google Scholar 

  29. Yang, X., Lin, X., Suo, S., Li, M.: Generating thematic Chinese poetry using conditional variational autoencoders with hybrid decoders, pp. 4539–4545. ijcai.org (2018)

    Google Scholar 

  30. Yi, X., Li, R., Yang, C., Li, W., Sun, M.: MixPoet: diverse poetry generation via learning controllable mixed latent space, pp. 9450–9457. AAAI Press (2020)

    Google Scholar 

  31. Yi, X., Sun, M., Li, R., Li, W.: Automatic poetry generation with mutual reinforcement learning, pp. 3143–3153. Association for Computational Linguistics (2018)

    Google Scholar 

  32. Yi, X., Sun, M., Li, R., Yang, Z.: Chinese poetry generation with a working memory model, pp. 4553–4559. ijcai.org (2018)

    Google Scholar 

  33. Zhang, J., et al.: Flexible and creative Chinese poetry generation using neural memory, pp. 1364–1373. Association for Computational Linguistics (2017)

    Google Scholar 

  34. Zhang, R., Liu, X., Chen, X., Hu, Z., Xu, Z., Mao, Y.: Generating Chinese CI with designated metrical structure, pp. 7459–7467. AAAI Press (2019)

    Google Scholar 

  35. Zhang, X., Lapata, M.: Chinese poetry generation with recurrent neural networks, pp. 670–680. ACL (2014)

    Google Scholar 

  36. Zhou, C.L., You, W., Ding, X.: Genetic algorithm and its implementation of automatic generation of Chinese SONGCI. J. Softw. 21(3), 427–437 (2010)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tong Xiao .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Luo, Y. et al. (2021). Chinese Poetry Generation with Metrical Constraints. In: Wang, L., Feng, Y., Hong, Y., He, R. (eds) Natural Language Processing and Chinese Computing. NLPCC 2021. Lecture Notes in Computer Science(), vol 13028. Springer, Cham. https://doi.org/10.1007/978-3-030-88480-2_30

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-88480-2_30

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-88479-6

  • Online ISBN: 978-3-030-88480-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics