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

seq2seq的predict预测长度限制问题 #45

Open
chengturbo opened this issue May 24, 2023 · 2 comments
Open

seq2seq的predict预测长度限制问题 #45

chengturbo opened this issue May 24, 2023 · 2 comments

Comments

@chengturbo
Copy link

seq2seq的predict.py tokenizer的时候已经设置了max_len 和padding,为什么下面还需要再进一步的判断是否超过100。是否有特殊情况?
image

@HillZhang1999
Copy link
Owner

这个100是超过100长度的句子,就不修改了

@zdm0301
Copy link

zdm0301 commented Jun 20, 2023

你好,为什么我执行完predict.py之后,生成的句子是分字存在的,且句子不完整,已经从某个地方进行截断了???
所以这个predict.py 到底是干啥的呢?

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

3 participants