Text this: Neural network-based classification and regression of magnetohydrodynamic modes in tokamaks