Text this: Direct coupling analysis and the attention mechanism