So I was trying to implement the SLOR score, using the transformer-XL, mostly avoiding training. But given the XL model and the sentence, how could i go about getting the sentence level log probability?
Attached is the formula I'm trying to implement.

Thanks a lot for your help.
So I was trying to implement the SLOR score, using the transformer-XL, mostly avoiding training. But given the XL model and the sentence, how could i go about getting the sentence level log probability?
Attached is the formula I'm trying to implement.

Thanks a lot for your help.