I have a language model. Given a sentence, it assigns weights to each n-gram in the sentence and returns "positive" or "negative". My goal is to visualize this model. Is there any front-end package I can use? Preferable in React.
One possible effect I would like to have is that each word can be color coded, and color being darker means weight assigned to that word by the model is larger.