arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.12790cs.CL
收藏

GPT 捷克诗人:利用语言模型生成捷克诗歌诗节

GPT Czech Poet: Generation of Czech Poetic Strophes with Language Models

Institute of Formal and Applied Linguistics, Faculty of Mathematics and Physics(形式与应用语言学研究所,数学与物理学院);Charles University(查理大学)

Michal Chudoba, Rudolf Rosa

AI总结:

本文提出基于微调大型语言模型的捷克语诗歌生成模型,通过显式指定诗节参数和采用音节或字符分词,并引入强制生成机制,显著提升押韵与格律质量。

摘要:

高质量的自动诗歌生成系统目前仅适用于少数语言。我们提出了一种新的捷克语诗歌生成模型,基于对预训练大型语言模型的微调。我们证明,在诗歌文本中显式指定诗节参数来引导生成过程,能显著提高模型的有效性。我们还发现,恰当的分词至关重要,表明基于音节或单个字符而非子词的分词方法在生成诗歌诗节方面表现更优。我们进一步通过引入强制生成(Forced generation)来增强结果,在推理时基于已生成的文本添加对格律和诗句参数的显式规范。我们评估了一系列设置,表明我们提出的方法在生成诗歌的押韵和格律等形式质量方面达到了高准确率。

英文摘要:

High-quality automated poetry generation systems are currently only available for a small subset of languages. We introduce a new model for generating poetry in Czech language, based on fine-tuning a pre-trained Large Language Model. We demonstrate that guiding the generation process by explicitly specifying strophe parameters within the poem text strongly improves the effectiveness of the model. We also find that appropriate tokenization is crucial, showing that tokenization methods based on syllables or individual characters instead of subwords prove superior in generating poetic strophes. We further enhance the results by introducing \textit{Forced~generation}, adding explicit specifications of meter and verse parameters at inference time based on the already generated text. We evaluate a range of setups, showing that our proposed approach achieves high accuracies in rhyming and metric aspects of formal quality of the generated poems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑