How to work with Multi-class dependent text classification?

Working on Text Classification which has two Classes - Class 1 and Class 2. So I have the following data - Text, class1, class2. Now the classes can have the following values -

class1 = ['a','b','c']

class2 can be ['a1','a1','a3'] if class1 = 'a'
class2 can be ['b1','b2','b3'] if class1 = 'b'
class2 can be ['c1','c2','c3'] if class1 = 'c'

Query: How can I create a model for class2 which will predict based on Text and class1?

© Copyright 2013-2019 Analytics Vidhya