So, if I understand correctly and, please correct me if I'm wrong.. But sentiment analysis, the way I understand how the process works, is like distilling a text down to its essentials. Like its concepts or expressions? That would be the tokenizing part, right? And then using a bunch of algorithms in machine learning to help AIs recognize the meaning of those concepts using various data sets?

Am I way off-track here? Well I know you said there were two main approaches. Lexicon-based seems simple enough, even for me. But it's the machine learning one that leaves me a bit fuzzy.
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence