Machine-Learning Love: classifying the equation of state of neutron stars with Transformers