Rasa Algorithm Whiteboard - Toxic Language Detection

  Рет қаралды 3,638

Rasa

Rasa

Күн бұрын

Пікірлер: 11
@ramshasiddiqui8477
@ramshasiddiqui8477 4 жыл бұрын
What if we have a use-case where we want to classify personal-insult VS general use of illicit language. For example, a customer complaining about how his debit card is *** useless V.S. a customer calling a Customer Service Representative / Bot *** useless and asking to talk to a supervisor. How do I teach a model that these two are different without building my own dataset from conversations? Also does RASA support Sentiment Analysis with Intent Detection?
@RasaHQ
@RasaHQ 4 жыл бұрын
(Vincent here) If you want any model to learn, you're going to have to accept that you need to collect data. If you want your model to be representative, that means that you'll need to collect representative data. Nothing is stopping you from adding sentiment models to your Rasa pipeline. But instead, a more common approach is to have "abusive text" as a label. This also allows your assistant to respond in a "this is not normal behavior"-kind of way as well because it is detected as an intent. I've been thinking about adding support for a sentiment tool in the pipeline. You might be able to set a slot that tells you the sentiment of the user in the conversation. The issue of "cultural aspect" remains the same though and I'm not 100% sure that taking a pre-trained sentiment model is going to be a good idea for every assistant out there.
@ramshasiddiqui8477
@ramshasiddiqui8477 4 жыл бұрын
@@RasaHQ Have you checked out the DeepPavlov Pipeline and their insult-detection classifier for this problem (demo.deeppavlov.ai/#/en/insult). I kinda like it, pretty much works for this use-case and the good thing about their framework is that its RASA DSL Compatible - was really impressed with it!
@RasaHQ
@RasaHQ 4 жыл бұрын
​@@ramshasiddiqui8477 This is news to me. I've played with the demo briefly and it does seem robust against some of the issues I mention in my video. I'll explore it further though. I'm interested to see what data it has been trained on.
@sam.q
@sam.q 3 жыл бұрын
@@RasaHQ Hi, I'd like to first thank you for the amazing content. To help with the data collection problem, I would like to suggest an approach where you use a language generation model like GPT-2 to create synthetic data. The idea is that you finetune your classifier and GPT-2 on the existing small dataset and then use both models to generate additional examples. One way would be to basically generate thousands of random examples with GPT-2 (e.g. with top-k or nucleus sampling) then use the trained classifier to output a probability distribution for every generated example. Apply entropy function on the predictions and sort them in descending order. Examples with highest entropy are basically the ones that were the most confusing to the classifier. Review top n examples and correct their labels by hand. Add the reviewed examples to the original training data. The finally retrain the classifier with the new dataset.. you could repeat these steps in active learning runs for better results.. You could also implement this with the Monte Carlo Tree Search algorithm to condition on gpt to generate examples with a reward function (though this could be a slower process). If you find this approach interesting, please check out our paper for more details "Textual Data Augmentation for Efficient Active Learning on Tiny Datasets". www.aclweb.org/anthology/2020.emnlp-main.600/
@shubheshswain5480
@shubheshswain5480 3 жыл бұрын
Can Rasa bot be used for chat moderation using the trained BERT model?
@RasaHQ
@RasaHQ 3 жыл бұрын
(Vincent here) Could you elaborate on what you mean by chat moderation? Rasa supports BERT models natively for featurization but it sounds like you're referring to something else.
@shubheshswain5480
@shubheshswain5480 3 жыл бұрын
@@RasaHQ I mean a Bot which can report user if he/she send hateful messages. Also that BOT can report to Admin if the User has violated multiple times.
@RasaHQ
@RasaHQ 3 жыл бұрын
@@shubheshswain5480 You can use the logs generated by Rasa Open Source/Rasa X to use your own model for this, but it's not something that we have built-in at the moment.
@shubheshswain5480
@shubheshswain5480 3 жыл бұрын
@@RasaHQ okay. I'll check it. Thanks for your support.
@rickharold7884
@rickharold7884 4 жыл бұрын
Cool. Thx
Rasa Algorithm Whiteboard - Lexical Ambiguity
11:35
Rasa
Рет қаралды 5 М.
What is CALM?
7:59
Rasa
Рет қаралды 858
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
Thank you mommy 😊💝 #shorts
0:24
5-Minute Crafts HOUSE
Рет қаралды 33 МЛН
УНО Реверс в Амонг Ас : игра на выбывание
0:19
Фани Хани
Рет қаралды 1,3 МЛН
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 66 М.
Key Value Cache in Large Language Models Explained
17:36
Tensordroid
Рет қаралды 2,8 М.
Rasa Studio: Activating Flows
10:13
Rasa
Рет қаралды 326
Rasa Studio: Flows
8:38
Rasa
Рет қаралды 632
20 BEST Things I saw in Vegas at CES 2025!
16:18
Smart Home Solver
Рет қаралды 3,5 М.
Automated Work Machines That Will Change Your Life Forever
17:01
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 148 М.