Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于文本摘要生成算法中,输入字数限制的问题 #9

Open
HeroSong666 opened this issue Sep 19, 2023 · 3 comments
Open

Comments

@HeroSong666
Copy link

我在input输入大段的新闻内容时会被截断,但是找不到字数限制的参数,作者可以指个路吗?谢谢!

@yaoxiaoyuan
Copy link
Owner

你好,你需要输入多长的文本?模型是有最长长度限制的,因此不能超过模型的最长长度,现在下载链接里的这个模型长度限制在512以内。

@HeroSong666
Copy link
Author

需要输入2000字以上的文本,请问输入文本的最长长度限制在哪里可以修改呢?谢谢!

@yaoxiaoyuan
Copy link
Owner

你可能没有明白,这个没有办法修改,每个模型都有自己的最长长度限制,不是改一句代码可以解决的。这个模型的输入长度限制在512字以内。只有重新训练一个可以支持更长长度的才可以。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants