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

understanding input construction and special tokens: #3

Open
VikasRajashekar opened this issue Nov 11, 2020 · 0 comments
Open

understanding input construction and special tokens: #3

VikasRajashekar opened this issue Nov 11, 2020 · 0 comments

Comments

@VikasRajashekar
Copy link

I see that you define 5 new tokens. bos eos persona_token speaker1 speaker2.

And the input is constructed like:

input_ids :
<persona_token> (persona sentence1) <persona_token> (persona sentence2) ... <speaker1> (history sentence1) <speaker2> <history sentence2> <bos> response <eos>

token_type_ids:
<persona_token> for all personal sentence +<speaker1> and <speaker2> for respective sentences + <bos> for response

lm_labels:
-1 for tokens except for response

My questions are:

  1. Is my understanding correct?
  2. in token_type_ids why is bos tag used as a type for all the response tokens?

Attaching the file I used for this analysis.
xyz_new.txt

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