def _process_caption(caption):
 tokenized_caption = [FLAGS.start_word]
 tokenized_caption.extend(nltk.tokenize.word_tokenize(caption.lower()))
 tokenized_caption.append(FLAGS.end_word)
 return tokenized_caption

def _process_caption ( caption ) : tokenized_caption = [ FLAGS . start_word ] tokenized_caption . extend ( nltk . tokenize . word_tokenize ( caption . lower ( ) ) ) tokenized_caption . append ( FLAGS . end_word ) return tokenized_caption
processes a caption string into a list of tonenized words .