Given a previous word, we can calculate the probability distribution of the next word p t+1 using the model described above.
we can generate captions starting from the special symbol BOS with Beam Search.