transfer-learning-conv-ai icon indicating copy to clipboard operation
transfer-learning-conv-ai copied to clipboard

the meaning of code

Open steveluo01 opened this issue 2 years ago • 0 comments

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?

steveluo01 avatar Feb 01 '23 03:02 steveluo01