https://github.com/vul337/jTrans/blob/67d5c4981dc74731a486dcaa17336e1e3a15c2e4/finetune.py#L172 Why the posi is not y[i]+1 directly ? The ground truth should be i-th vector, so its rank y[i] should be near to 1 as possible.
jTrans/finetune.py
Line 172 in 67d5c49
Why the posi is not y[i]+1 directly ?
The ground truth should be i-th vector, so its rank y[i] should be near to 1 as possible.