Text this: Application of statistical pattern recognition and deep learning for morphological classification in radio astronomy