Text this: Supervised Extraction of the Thermal Sunyaev–Zel’dovich Effect with a Three-dimensional Convolutional Neural Network