Deep Learning for Filling Blanks in Image Captions