Term extraction from NLP sequence classification

I have trained a model that can classify whether or not a given sentence contains expressions/descriptions/terms of attitudes. Next I would like to extract the “attitude terms” from those sentences for further analysis. Basically I would like to extract the word or word sequence from a given sentence which lead to the sentence being classified as containing an expression of attitudes. How should I approach this?

Here is an example how to do that: https://www.kaggle.com/cdeotte/unsupervised-text-selection

1 Like