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

Limiting the source length of the text for the summary #1

Open
alex-romanovskii opened this issue Jun 26, 2021 · 0 comments
Open

Limiting the source length of the text for the summary #1

alex-romanovskii opened this issue Jun 26, 2021 · 0 comments

Comments

@alex-romanovskii
Copy link

Hello
I dug deeper into your code, I was interested to see the weight for each sentence. As a result, I saw that not all sentences receive weight. I started to analyze each line and here's what's interesting:
src_subtoken_idxs = src_subtoken_idxs[:-1][:max_pos]
here we cut off the token's indexes, by default this value is 512. As I understand it, for the summary it use sequences with a total token length not exceeding 512 tokens.

I will be glad to answer

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

1 participant