Transfer learning for text classification