Closed enzoampil closed 4 years ago
Can use this model for sentiment spans
Can use this for toxicity controls
https://www.kaggle.com/c/jigsaw-multilingual-toxic-comment-classification/notebooks
Using the model as a reference
https://www.kaggle.com/abhishek/bert-base-uncased-using-pytorch
I've decided to start with approach 2 above and will follow the ff steps:
<positive>
, and <negative>
)I also realized that the same approach as above can be applied to named entities.
The long term goal would be to have a both with a set of configurations that allows it to respond to humans in controllable and relatable way.
Two approaches in mind so far:
The cool thing about this is that it creates versatility around sentiment, since the value is continuous. I.e., there is a concept of very happy and slightly happy.
E.g.
E.g.
The create a dataset with sentiment tags, we can simply reuse existing sentiment analysis models and apply them to each joke in the dataset. We can start off with fine-tuned BERT models for sentiment analysis on full text (example), and then move towards span level controls (example).
A span level implementation will look like below:
E.g.