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

what does PAD / GO / EOS / UNK mean? #15

Closed
guotong1988 opened this issue Sep 9, 2016 · 8 comments
Closed

what does PAD / GO / EOS / UNK mean? #15

guotong1988 opened this issue Sep 9, 2016 · 8 comments

Comments

@guotong1988
Copy link

Thank you !

@nicolas-ivanov
Copy link
Owner

These are the special tokens used in seq2seq:

  • GO - the same as <start> on the picture below - the first token which is fed to the decoder along with the though vector in order to start generating tokens of the answer
  • EOS - "end of sentence" - the same as <end> on the picture below - as soon as decoder generates this token we consider the answer to be complete (you can't use usual punctuation marks for this purpose cause their meaning can be different)
  • UNK - "unknown token" - is used to replace the rare words that did not fit in your vocabulary. So your sentence My name is guotong1988 will be translated into My name is _unk_.
  • PAD - your GPU (or CPU at worst) processes your training data in batches and all the sequences in your batch should have the same length. If the max length of your sequence is 8, your sentence My name is guotong1988 will be padded from either side to fit this length: My name is guotong1988 _pad_ _pad_ _pad_ _pad_

image

@Yangmy2047
Copy link

very clear

@kumawatdevesh
Copy link

great!

@vyspi394
Copy link

Awesome !Helped me a lot.

@ryuryukke
Copy link

Thanks a lot :)

@aaparikh
Copy link

Thanks for this 👍🏻

@wendyZhang98
Copy link

Thanks a lot! Really clear to understand!

@sminjeon
Copy link

sminjeon commented Aug 9, 2022

Thanks a lot~~

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

9 participants