How to use the transformers pre-training model to calculate the probability of a sentence instead of PPL?
I now want to use the pre-trained language model of transformers to calculate the probability of a sentence (a value between 0 and 1) instead of PPL. What should I do? Thanks!
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md) are likely to be ignored.