Text this: Analysis of the generalization ability of neural networks based on the NN-MPS-interpolation model