Methods for addressing class imbalance in deep learning-based natural language processing