Hello @Rapidz,
in the last part of my code replace my_sentences
by the name of your data_frame
and replace text1
by the name of your column (that contains the text strings that you want to categorize.
If this does not help, show us the code that you use, the first few lines of the input data.frame and messages (if any). In this case the info in producing a minimal reproducible example might help.