BARTNER icon indicating copy to clipboard operation
BARTNER copied to clipboard

mapping = torch.LongTensor([0, 2]+label_ids)

Open jingsongs opened this issue 2 years ago • 2 comments

您好! 想咨询下,FBartDecoder类中,mapping = torch.LongTensor([0, 2]+label_ids) 其中的 0, 2 代表什么?

jingsongs avatar Sep 28 '22 07:09 jingsongs

0和2分别是bart的start-of-sentence和end-of-sentence。

yhcc avatar Oct 07 '22 07:10 yhcc

谢谢

jingsongs avatar Oct 13 '22 03:10 jingsongs