Automating Text Encapsulation Using Deep Learning