renmada / t5-pegasus-pytorch

402 stars 61 forks source link

关于文本摘要生成的输入长度问题 #23

Closed hindsightL closed 2 years ago

hindsightL commented 2 years ago

您好,请问如何设置文本生成的长度呢?设置了min_length但是只是在后面用“。”补全了,比如我想生成一个400字左右的文本摘要,参数或者代码要改哪里呢?希望能指点一个方向,谢谢

hindsightL commented 2 years ago

补全的字符是后面双引号里面的句号,就是一连串的句号,像“。。。。。。。。。。”

---Original--- From: @.> Sent at: 2022年1月10日(Mon) PM3:30 To: @.>; Cc: @.**@.>; Subject: Re: [renmada/t5-pegasus-pytorch] 关于文本摘要生成的输入长度问题 (Issue #23)

“设置了min_length但是只是在后面用” , 再试在后面用是什么意思

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

renmada commented 2 years ago

那得看你的训练数据,摘要的长度在400字左右

hindsightL commented 2 years ago

可是这个不是只有模型吗?没有训练的代码啊。。。

---Original--- From: @.> Sent at: 2022年1月10日(Mon) PM3:50 To: @.>; Cc: @.**@.>; Subject: Re: [renmada/t5-pegasus-pytorch] 关于文本摘要生成的输入长度问题 (Issue #23)

那得看你的训练数据,摘要的长度在400字左右

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

renmada commented 2 years ago

按照这个修改

hindsightL commented 2 years ago

好的,我试一下,非常感谢您!