Finding the perplexity of multiple examples – Cross Validated

I am trying to find a way to calculate perplexity of a language model of multiple 3-word examples from my test set, or perplexity of the corpus of the test set. As the test set, I have a paragraph which I’ve split into 3-word examples like this: if the corpus is “Hello my name is Jack.”, my 3-word examples would be “Hello my name”, “my name is …

https://stats.stackexchange.com/questions/496097/finding-the-perplexity-of-multiple-examples