Text this: Attention to the strengths of physical interactions: Transformer and graph-based event classification for particle physics experiments