Learning Two-Branch Neural Networks for Image-Text Matching Tasks