Open graykode opened 5 years ago
b_begin
was designed to be the target that corresponds to SEP
, although it was not used in the end because special symbols have no target.
@kimiyoung I understand!
So, you are intend to assert tgt.shape[0] == seq_len
as vaild
Thanks!
https://github.com/zihangdai/xlnet/blob/master/data_utils.py#L316
I wonder why this is
b_begin: b_end + 1
, notb_begin+1: b_end + 1
.Also, what is mean?
https://github.com/zihangdai/xlnet/blob/master/data_utils.py#L634
As always, thank you!!