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

Throw appropriate error for pad_sequence input of length > maxlen #183

Open
Ayushk4 opened this issue Jan 10, 2020 · 3 comments · May be fixed by JuliaText/TextModels.jl#17
Open

Throw appropriate error for pad_sequence input of length > maxlen #183

Ayushk4 opened this issue Jan 10, 2020 · 3 comments · May be fixed by JuliaText/TextModels.jl#17
Labels

Comments

@Ayushk4
Copy link
Member

Ayushk4 commented Jan 10, 2020

function pad_sequences(l, maxlen=500)

This function returns nothing in case the input length > maxlen.
It will be better to have a proper error handling and err message display for this.

@Ayushk4
Copy link
Member Author

Ayushk4 commented Jan 10, 2020

Thanks to @fungktt for pointing out the above.

@bnriiitb
Copy link

@Ayushk4 still some work needed on this?

@Ayushk4
Copy link
Member Author

Ayushk4 commented Jul 24, 2020

I am currently waiting for a response from @sean-gauss , since they already sent a PR.

But, a PR is welcome for fixing this.

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

Successfully merging a pull request may close this issue.

2 participants