Sentence Prediction

Hello everybody, a question, how can I do the following: given a sentence A, how can I know what is the probability of generating another sentence B, with language models? For example, given the sentence A: the cat is hungry, what is the probability that it generates the sentence B: The cat has already eaten.