How to deal with imbalanced text data I am working on a problem where I have to classify products into multiple classes (more than one) based on product descriptions. For instance:
&quot;Tresemme shampoo and conditioner - sulfate-free&quot; = Personal Hygiene
&quot;Lavender-scented handwash with moisturizer&quot; = Personal Hygiene
&quot;Doritos Ranch flavor 18 oz mega party pack&quot; = Snacks
&quot;Painting and Craft kit for adults above 18&quot; = Art and Craft
However, my training dataset is highly imbalanced. A few classes have only 10 records while there is one that has 3,000 records. 50,000 records overall.
Can anyone suggest any good techniques to deal with the imbalance in text data?
Thanks,
GD
I too am working on same problem, found these below links very useful in getting started on oversampling and under sampling-

https://machinelearningmastery.com/random-oversampling-and-undersampling-for-imbalanced-classification/

https://en.wikipedia.org/wiki/Oversampling_and_undersampling_in_data_analysis