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

Do you have the limitation of the article length? #14

Closed
jhliu17 opened this issue Apr 19, 2019 · 3 comments
Closed

Do you have the limitation of the article length? #14

jhliu17 opened this issue Apr 19, 2019 · 3 comments

Comments

@jhliu17
Copy link

jhliu17 commented Apr 19, 2019

Since the original Bert model in training restricts the max length of sentence to 512. So in summarization, did you set any hand-crafted scheme to restrict the article length? Or, you just inject all the article token into the pre-trained Bert model.

@nlpyang
Copy link
Owner

nlpyang commented Apr 19, 2019

Yes, input length is limited to 512.

@jhliu17
Copy link
Author

jhliu17 commented Apr 20, 2019

So is the article longer than 512 removed from the training set?

@nlpyang
Copy link
Owner

nlpyang commented Apr 20, 2019

No article is removed. We just truncated the length to 512. Please find details in the codes.

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