Change the 'sentence' in train_sentence_slow

now sentence is a list of words' indices