Deep learning Voigt profiles. I. Single-cloud doublets