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

how to decode a sentence whose length is greater than max_len ? #29

Closed
stone8oy opened this issue Jan 9, 2017 · 2 comments
Closed

how to decode a sentence whose length is greater than max_len ? #29

stone8oy opened this issue Jan 9, 2017 · 2 comments

Comments

@stone8oy
Copy link

stone8oy commented Jan 9, 2017

Hi, koth,
nice work!
say ,I have a sentence S, and len(S) = 230, how to predict the output tags? should I manually cut them into max_len segments ?
Thanks a lot!

@stone8oy stone8oy changed the title how to test model with python ? how to test model with python not tensorflow serving? Jan 9, 2017
@stone8oy stone8oy changed the title how to test model with python not tensorflow serving? how to decode a sentence whose length is greater than max_len ? Jan 11, 2017
@koth
Copy link
Owner

koth commented Jan 12, 2017

It will first try to split the sentence according to chinese punction (,。... etc),if still longer than max len, it will force split per max len characters.

@stone8oy
Copy link
Author

I got it, thanks a lot ! @koth

@koth koth closed this as completed Jan 14, 2017
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