LSTM sentence probability, how to get the sentence probability at each word and then make a sum of those?

Hi:
LSTM output values


how to get the sentence probability at each word and then make a sum of those?