<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Samuel Torche on Medium]]></title>
        <description><![CDATA[Stories by Samuel Torche on Medium]]></description>
        <link>https://medium.com/@samuel.torche?source=rss-684c9fc7d74c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2ekAl5-a54IGxuqkxzCgcA.jpeg</url>
            <title>Stories by Samuel Torche on Medium</title>
            <link>https://medium.com/@samuel.torche?source=rss-684c9fc7d74c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 23:50:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samuel.torche/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Emotional Paraphrasing]]></title>
            <link>https://medium.com/empathic-labs/emotional-paraphrasing-75d4de586546?source=rss-684c9fc7d74c------2</link>
            <guid isPermaLink="false">https://medium.com/p/75d4de586546</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[emotions]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[transformers]]></category>
            <dc:creator><![CDATA[Samuel Torche]]></dc:creator>
            <pubDate>Wed, 04 Aug 2021 08:23:40 GMT</pubDate>
            <atom:updated>2021-08-04T08:23:40.220Z</atom:updated>
            <content:encoded><![CDATA[<h4>Using transformer-based language models to generate emotions in sentences</h4><p>When building chatbots with Natural Language Understanding (NLU), <strong>we need a lot of training samples to train intent detection systems</strong>. One way is to collect data from users by extracting conversations or using crowdsourcing platforms like Amazon Mechanical Turk, but this is tedious work or costly processes (in addition to the fact that writing sentences by hand is not a fun job). The other way is to <strong>develop a language model that is capable of paraphrasing sentences</strong>. A paraphrase is a restatement of a text using other words while keeping the same semantic. In this way, it will be possible to create a fraction of the sentences manually and then generate tens of new sentences based on them by paraphrasing them. <strong>Adding emotions to these generated paraphrases allows to increase the diversity of the paraphrase and also lays the foundation for the creation of an emotional dialogue architecture.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZZ4OUd5qJeodR-Z2Dh0uAg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@tengyart?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Tengyart</a> on <a href="https://unsplash.com/s/photos/emotions?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><strong>Transformer-based language models</strong> are becoming extremely powerful, so we will see how we can leverage their power to generate emotional paraphrases.</p><h3>Concept</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*4kVPKLh2rbwi1sFrufpjfA.png" /><figcaption>Architecture of the system</figcaption></figure><p><strong>We propose an architecture composed of three modules</strong>: 1) corruption of the emotion present in the input sentence, 2) creation of a sentence that is enhanced emotionally for a specific emotion using a fine-tuned GPT-2 model, and 3) generation of a paraphrase of the emotionally augmented sentence.</p><h4>1 — Data Corrupter</h4><p>The Data Corrupter detects and removes emotional words from the sentence. This is done by comparing every word of the sentence against 3 emotional lexicons: <a href="http://www.depechemood.eu/">DepecheMood</a>, <a href="https://saifmohammad.com/WebPages/NRC-Emotion-Lexicon.htm">NRC</a>, and <a href="https://github.com/aesuli/SentiWordNet">SentiWordNet</a>. We use this process on a massive emotional dataset made by unifying 7 emotional datasets under Paul Ekman “<a href="https://managementmania.com/uploads/article_image/image/572/.png">6 basic emotions</a>” model: anger, disgust, fear, joy, sadness, and surprise. The 7 datasets we used are <a href="https://www.aclweb.org/anthology/2020.acl-main.372/">GoEmotions</a>, <a href="http://www.site.uottawa.ca/~diana/resources/emotion_stimulus_data/">Emotion-Stimulus</a>, <a href="https://www.aclweb.org/anthology/S17-1007">CrowdFlower</a>, <a href="https://doi.apa.org/doiLanding?doi=10.1037%2F0022-3514.66.2.310">ISEAR</a>, <a href="http://ceur-ws.org/Vol-1619/paper3.pdf">SMILE</a>, <a href="https://www.aclweb.org/anthology/S18-1001">SemEval-2018 Task 1</a>, and <a href="https://www.aclweb.org/anthology/S12-1033">TEC</a>. All these datasets use a different emotional model so we need to map these emotions under Ekman’s model using Plutchik’s “<a href="https://en.wikipedia.org/wiki/Robert_Plutchik#/media/File:Plutchik-wheel.svg">Wheels of emotions</a>”, and <a href="https://www.researchgate.net/figure/First-two-layers-of-Parrots-emotion-classification_fig3_258240889">Parrot’s tree structure model</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*1P_F-uEAb6eXDpGNkcME5w.png" /><figcaption>Emotional mapping to Ekman’s model</figcaption></figure><p>Using the Data Corrupter, we can create 6 datasets, one for each emotion of Ekman’s model, of pairs of emotional sentences and corrupted sentences. If we do not find emotional words in a sentence, we should ignore it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*WAnphoxO-AF16oElVEA2HQ.png" /><figcaption>Number of samples for each dataset</figcaption></figure><h4>2 — Emotion Enhancer</h4><p>Using these datasets, we can fine-tune 6 GPT-2 models, one for each emotion. The goal of each model is to reconstruct the emotional sentence using the corrupted sentence, hence learning how to construct a sentence conveying a specific emotion. We call these models Emotion Enhancer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*TAoKPZO4Bw2y4P-j9kWyJw.png" /><figcaption>How to feed pairs of emotional sentences/corrupted sentences to a GPT-2 model</figcaption></figure><h4>3 — Paraphrase Generator</h4><p>Our last module, the Paraphrase Generator, is simply composed of a publicly available fine-tuned GPT-2 model for the paraphrase generation task. We use a GPT-2 model provided by <a href="https://forum.rasa.com/t/paraphrasing-for-nlu-data-augmentation-experimental/27744">RASA</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*GXjWYxccthLewnf_IylFFg.png" /><figcaption>Example of sentences produced by the system</figcaption></figure><h3>Evaluation</h3><p>To evaluate our system, we create 3 testing sets from popular paraphrases datasets: <a href="https://cocodataset.org/#home">MSCOCO</a>, <a href="https://www.quora.com/q/quoradata/First-Quora-Dataset-Release-Question-Pairs">QQP</a>, and <a href="https://www.aclweb.org/anthology/P18-1042/">PARANMT</a>. We conducted a qualitative study with human judges, as well as a quantitative evaluation.</p><h4>Automatic Evaluation</h4><p>We use the well-known metrics <a href="https://www.aclweb.org/anthology/P02-1040">BLEU</a>, <a href="https://www.aclweb.org/anthology/W05-0909">METEOR</a>, and <a href="http://mt-archive.info/AMTA-2006-Snover.pdf">TER</a> to evaluate the paraphrasing aspect of our system. These metrics work well for the paraphrases evaluation and correlate well with human judgments (source: <a href="https://www.aclweb.org/anthology/N12-1019">Madnani et al. 2012</a> and <a href="https://www.aclweb.org/anthology/W10-4223">Wubben et al. 2010</a>). To evaluate the emotional aspect of our system, we use an <a href="https://github.com/monologg/GoEmotions-pytorch">emotion classifier</a> and simply compute the percentage of time the emotional classifier predicts that our paraphrase has the expected emotion. We compare our paraphrasing results with state-of-the-art model GAP from <a href="https://www.aclweb.org/anthology/D19-1309">Yang et al. (2019)</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_E5fYf2kijRcfk8_xWCvbA.png" /><figcaption>Paraphrasing results. Average on MSCOCO, QQP, and PARAMNT. BLEU&amp;METEOR: higher is better, TER: lower is better.</figcaption></figure><p>Our system is inferior in pure paraphrasing metrics. The Paraphrase Generator module achieves decent scores, but our full emotional architecture performs pretty badly. There are no significant differences between the models for the various emotions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vWeEfIXp3PBR7iiYEcT2Ng.png" /><figcaption>Emotional results of the automatic evaluation. Each value is the percentage of times the classifier finds the specific emotion in the sentences generated by the model.</figcaption></figure><p>For the emotion evaluation, the emotion score is higher for the paraphrases generated by our system for almost all the emotions for every testing set. Note that the surprisingly high values for the surprise emotion in the QQP dataset are accountable to a bias. Indeed, the classifier apparently thinks that a text ending with a question mark suggests a surprise, and there are many of them in QQP. Overall, the results obtained suggest that our joy, anger, sadness, and fear models work bests.</p><h4>Human Evaluation</h4><p>A human evaluation is required to assess the performance of the system qualitatively. Twenty sentences (6 from MSCOCO, 7 from QQP, and 7 from PARANMT) are randomly chosen and processed by our system that generates 6 sentences for each input, one for each emotion. The 20 reference paraphrases of these 20 base sentences were also added. In total, the human evaluation testing set is composed of 140 pairs of base sentences and emotional/reference sentences. Human annotators are asked to rate each pair on a scale of 1 to 5, where 1 is worst and 5 is best, the content preservation, readability, and diversity of the sentence compared to the base sentence. They are also tasked with classifying the sentence based on the primary emotion it conveys: anger, disgust, fear, joy, sadness, surprise, or no emotion. Each pair is evaluated by 20 human judges hired on Amazon Mechanical Turk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*t0ZwtY2ceFuyv3l8VG6SPQ.png" /><figcaption>How a question is displayed in the Amazon Mechanical Turk survey</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*PUZFSq-7xE3UjZqgcIvw8g.png" /><figcaption>Human judges average score for the 3 characteristics (content-preservation, readability, diversity).</figcaption></figure><p>The ground truth performs better for content preservation and readability for almost every emotion. Regarding diversity, different emotions can perform better than the ground truth sentences, even if the average is almost the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-deBPVPvW5KfhtQ3_no7pg.png" /><figcaption>Changes in emotional votes brought by all emotional models for the 6 emotions, in percent</figcaption></figure><p>For the emotion evaluation, we compared how the human judges classified the emotion of the references with the emotion of the various models. For example, the number of samples classified by the judges as containing anger doubled between the references and the sentences from the anger model, thus an increase of 100%. We see that our disgust, fear, and sadness models work better than the others as they mostly impact the number of votes for their particular emotion. Asking human judges to classify a text based on seven emotions is challenging, as we reach a Fleiss κ of 0.07, meaning a slight inter-annotators agreement only.</p><h3>Conclusion</h3><p>We propose a new approach to perform emotional paraphrases by leveraging pre-trained GPT-2 models. <strong>We propose an architecture made of three modules. </strong>The first removes initial emotion markers from the original sentence, the second augments the emotion of it using a process to create parallel emotional/corrupted sentences, and the third generates a paraphrase of this augmented sentence. <strong>We evaluated our system on popular paraphrase datasets</strong> and noticed that both in our automatic and human evaluations our models fail to perform as well as state-of-the-art models in paraphrasing-related metrics. On the other hand, <strong>our system is able to generate emotion with some degree of success</strong>. Both evaluations agree that <strong>the fear and sadness models perform well</strong>. Only the quantitative evaluation shows that joy and anger are efficient, whereas, on the contrary, the judges found that disgust was working well.</p><p>Such technology can greatly facilitate the automatic creation of training phrases for natural language understanding (NLU) systems, but it can also be integrated into an emotional dialogue architecture to create emotional conversations.</p><p>Thanks for reading!</p><p>If you want to know more about NLU and how it is used for chatbot creation, read the following article:</p><p><a href="https://medium.com/empathic-labs/what-is-nlu-how-to-make-chatbots-understand-what-you-want-cecafff7aa7b">What is NLU? How to make chatbots understand what you want?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75d4de586546" width="1" height="1" alt=""><hr><p><a href="https://medium.com/empathic-labs/emotional-paraphrasing-75d4de586546">Emotional Paraphrasing</a> was originally published in <a href="https://medium.com/empathic-labs">Empathic Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep understanding of written user query]]></title>
            <link>https://medium.com/empathic-labs/deep-understanding-of-written-user-query-33b5d034a9b?source=rss-684c9fc7d74c------2</link>
            <guid isPermaLink="false">https://medium.com/p/33b5d034a9b</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[intent-classification]]></category>
            <category><![CDATA[sentiment-analysis]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[emotion-classification]]></category>
            <dc:creator><![CDATA[Samuel Torche]]></dc:creator>
            <pubDate>Wed, 26 Aug 2020 04:41:24 GMT</pubDate>
            <atom:updated>2020-08-26T04:41:24.433Z</atom:updated>
            <content:encoded><![CDATA[<h4>Enhancing chatbots with empathy: emotion and intention extraction.</h4><p>This project lies in the context of a collaboration between the <a href="http://humantech.institute/">HumanTech Institute</a> and <a href="https://karehq.com/">Kare Knowledgeware</a>. Kare’s product is an automated knowledge retrieval conversational tool. The goal of the collaboration is to enhance the customer experience by adding empathy into the system. Empathy is possible by following two steps, first understanding the user intention, and second answering him accordingly.</p><p>The main objective is to develop a tool that will allow a user to extract useful information about his query: intent (informational vs emotional), sentiment (happy, upset). A user query enters the system, and this same query exits the system with annotations.</p><figure><img alt="Basic principle of the project" src="https://cdn-images-1.medium.com/max/712/1*mxKD0yNGRHOhz3WN2OZdHA.png" /><figcaption>Basic principle of the project</figcaption></figure><h3>Intention extraction</h3><p>In the scope of this project, we will limit ourselves to 2 intentions:</p><ol><li><strong>Informational</strong>: also called Social Q&amp;A, they represent about 60% of all users requests.</li><li><strong>Emotional</strong>: mainly composed of attitudes and opinions toward a product or a brand, they represent 40% of all users requests.</li></ol><h4>Technologies</h4><p>The intention extraction module will be developed with the help of <a href="https://rasa.com/docs/rasa/nlu/about/">Rasa NLU</a>, a Python framework that allows us to easily build chatbots, and in our case, to detect the user’s intention.</p><h4>Dataset</h4><p>The dataset for the intention extraction should contain samples classified as being either informational or emotional. No existing datasets are meeting these requirements so we will have to create our dataset using <a href="https://www.kaggle.com/thoughtvector/customer-support-on-twitter">customer support data</a> and manually classify it. The final dataset contains 100 samples for each of the two classes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*W3Ru86_UYwwi1awQikVa9w.png" /><figcaption>Example of informational samples</figcaption></figure><h4>Implementation</h4><p>Implementation of the intention extraction module using Rasa NLU is pretty straightforward. Once the library is installed, we must initialize Rasa so it creates the necessary structure, then we have to define the intents we want to detect. And for each intent, we must provide a dataset containing relevant examples of this intent. Then, the pipeline can be customized. In our case, the default pipeline is already good to go. Afterward, Rasa can build and save its model, and we can run this model as an API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*-G9wtzSSPMYTPflj0g51GA.png" /><figcaption>Intent classification module pipeline using Rasa</figcaption></figure><h4>Evaluation</h4><p>The model was evaluated using an 80/20 train&amp;test split. So 80% of the 200 samples will be used for training, and 20% for testing. The model reached <strong>85%</strong> accuracy with 34 out of the 40 testing samples correctly predicted.</p><p>Adding more samples to the intent classification dataset should increase its performance. 500 samples for each class might be a good start.</p><p>Some of the mistakes made by the model concerned ambiguous samples, such as <em>“app doesn’t work ever, it won’t let me order food. Keeps saying I need to confirm my phone number”</em> being classified as informational when it was emotional. This would suggest that sometimes a sample can be both informational and emotional and maybe adding a third intention makes sense.</p><h3>Emotion extraction</h3><p>First, we can ask ourselves, what is an emotion? There a no scientific consensus on a definition, but we can simplify it and define an emotion as an affective state associated with the nervous system. There are multiple classification models. Robert Plutchik “<a href="https://en.wikipedia.org/wiki/Robert_Plutchik#/media/File:Plutchik-wheel.svg">Wheels of emotions</a>” and Paul Ekman “<a href="https://managementmania.com/uploads/article_image/image/572/.png">6 basic emotions</a>” are two of the most popular models.</p><p>Deciphering the emotion in a text is particularly difficult. The lack of voice modulations and facial expressions is a challenge to overcome. Things like the number of words, the punctuation, the negation, the emojis, the lexicon of the words (see <a href="http://www.depechemood.eu/">DepecheMood </a>for more information) used can help to extract the emotion.</p><h4>Technologies</h4><p>Machine learning libraries such as <a href="https://keras.io/">Keras</a>, <a href="https://www.tensorflow.org/">Tensorflow</a>, and <a href="https://scikit-learn.org/stable/">Scikit-learn</a> will be used to develop the emotion extraction module. Advanced techniques such as <a href="https://towardsdatascience.com/introduction-to-word-embedding-and-word2vec-652d0c2060fa">word embedding</a> (look at <a href="https://nlp.stanford.edu/projects/glove/">GloVe</a> for more information), and <a href="https://en.wikipedia.org/wiki/Part-of-speech_tagging">POS-Tagging</a> will be used.</p><h4>Dataset</h4><p>The dataset for the emotion extraction should contain samples classified with its emotion. There are multiple existing datasets for this task, but we will use the <a href="https://www.aclweb.org/anthology/W17-5205/">WASSA 2017</a> dataset. It contains 7103 samples classified into 4 emotions: joy, anger, sadness, and fear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*wpzQkQXAV29WwsGnU_v8_w.png" /><figcaption>Examples of samples classified with its emotion</figcaption></figure><p>The last value on the figure above corresponds to the emotional intensity. Sometimes, the value is so low that the emotion indicated makes no sense, so we will filter these samples and only keep when the emotional intensity is at least at 0.6 (arbitrary value). This leaves us with 2245 samples: 696 fear, 474 anger, 562 joy, and 513 sadness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*6-B0Fp2pj9pp7WquLSiKUg.png" /><figcaption>Emotional intensity is too low</figcaption></figure><h4>Implementation</h4><p>For the emotion extraction, two modules will be built. The first one will make use of deep learning methods and the word embedding technique. The second one will use a simpler machine learning algorithm and make use of hand-crafted features found in the text such as the number of words, the emojis, the lexicon of the words used, etc. Both approaches will use the classical machine learning pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*ZRogd7sOTX439d7MJwHnnw.png" /><figcaption>Typical machine learning pipeline</figcaption></figure><p>The deep learning approach requires preprocessing on the samples: remove punctuation, convert the text in lower case, remove hashtags and mentions since the data comes from Twitter, remove stop words, and finally tokenize the text left. Bidirectional LSTM will be the main layer, since this machine learning architecture can retain information using memory cells.</p><h4>Evaluation</h4><p>Both approaches were evaluated using an 80/20 train&amp;test split, so 1779 samples for training and 449 for testing.</p><p>The deep learning approach reached <strong>80.78% </strong>accuracy globally. Joy is the best class with <strong>88.36%</strong> precision and <strong>93.48%</strong> recall. The other 3 classes have similar results, with a tendency to have a better precision than recall. The initial dataset was not exactly balanced between its 4 classes, it might explain why sadness and anger are often mispredicted to fear. Balancing and adding more samples to the dataset might improve the performance of the model.</p><p>The hand-crafted features approach made use of the Random Forest algorithm and reached <strong>59.47%</strong> accuracy. Joy is again the best class with <strong>72.41%</strong> precision and <strong>70.59%</strong> recall. The model often predicts fear instead of anger, and also often predicts anger or sadness instead of fear. If fear and anger were merged into a single emotion, the model would perform significantly better. The same remarks about balancing and adding more samples to the dataset can be made. Of all the hand-crafted features, the lexicon extracted features are the most important, followed by the number of words, the punctuation, and the emojis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t8bsfyhk9BIhMcoJgpd2iQ.png" /><figcaption>Hand-crafted features importances</figcaption></figure><p>It is interesting to note that joy is expressed in fewer words than anger. Fear seems to be unaffected by the number of words and sadness continually decreases until 20–25 words but has a sudden spike in 25+ words.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_i69IVK-flSYgX2dYdEG2A.png" /><figcaption>Distribution of emotions according to the number of words, expressed with percentage</figcaption></figure><p>If the text contains negation, it will have less probability to be a happy text, and if the text contains affirmation, it will have less probability to be an angry or sad text. Fear is unaffected by the presence of negation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oY39pIBNRpq8M9vY7abaaw.png" /><figcaption>Distribution of emotions according to the presence of negation or affirmation, expressed with percentage</figcaption></figure><p>There is a strong correlation between exclamation points and joy, but using more punctuation only has a small impact on the emotion. The differences on global punctuation use and the underlying emotion is small. Exclamation points and sadness seems to correlate also. Exclamation points seem to decrease the probability of sadness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BYbbo7CJlqF6vVOq7fScJQ.png" /><figcaption>Distribution of emotions according to the punctuation, expressed with percentage</figcaption></figure><h3>Conclusion</h3><p>The current solution is far from perfect. Two intentions, emotional and informational, are not sufficient. Some users’ queries can be ambiguous and adding a third class for these queries seems to be the way to go.</p><p>The current module for the emotion extraction has some flaws. The current 4 emotions used (joy, sadness, fear, and anger) lack the neutral emotion when a user’s query does not contain a particular emotion. The deep learning approach and hand-crafted features approach should be merged.</p><p>Detecting the emotion is particularly important in the context of a chatbot. Nowadays, chatbots feels too much like robots, they lack emotional intelligence (EQ). Correctly understanding the emotional state of the user allows the chatbot to be able to adapt itself.</p><p>Thanks for reading!</p><p>If you want to read more about related topics, I can suggest the article explaining Natural Language Understanding for chatbots, or another one from my colleague Charles Perriard about his project aiming at differentiating hateful messages from friendly ones with machine learning techniques here below:</p><ul><li><a href="https://medium.com/empathic-labs/what-is-nlu-how-to-make-chatbots-understand-what-you-want-cecafff7aa7b">What is NLU? How to make chatbots understand what you want?</a></li><li><a href="https://medium.com/empathic-labs/differentiating-hateful-messages-from-friendly-ones-96d79057bd22">Differentiating hateful messages from friendly ones</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33b5d034a9b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/empathic-labs/deep-understanding-of-written-user-query-33b5d034a9b">Deep understanding of written user query</a> was originally published in <a href="https://medium.com/empathic-labs">Empathic Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>