Get next word probability values for words in text

Hello! I am trying to use Huggingface to get next word probability values for each word in a text (about 1000 words long). Are there any online tutorials that go through the basic steps? Thank you in advance!