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

the meaning of code #130

Open
steveluo01 opened this issue Feb 1, 2023 · 0 comments
Open

the meaning of code #130

steveluo01 opened this issue Feb 1, 2023 · 0 comments

Comments

@steveluo01
Copy link

for utterance in dialog["utterances"]:
history = utterance["history"][-(2*args.max_history+1):]
for j, candidate in enumerate(utterance["candidates"][-num_candidates:]):
lm_labels = bool(j == num_candidates-1)
instance = build_input_from_segments(persona, history, candidate, tokenizer, lm_labels)

Hello, I am new to transfer, how to understand these sentences?

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