How Images Inspire Poems: Generating Classical Chinese Poetry from Images with Memory Networks