Text this: Method for the segmentation of brain magnetic resonance images using a neural network architecture based on attention models