<?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 Toufic Yammine on Medium]]></title>
        <description><![CDATA[Stories by Toufic Yammine on Medium]]></description>
        <link>https://medium.com/@yamminestoufic?source=rss-46e9a4dd247a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*T-hrq1IsKB6RlJKJ.jpg</url>
            <title>Stories by Toufic Yammine on Medium</title>
            <link>https://medium.com/@yamminestoufic?source=rss-46e9a4dd247a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 23:15:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yamminestoufic/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[Introducing Wisely]]></title>
            <link>https://medium.com/empathic-labs/introducing-wisely-57b654bce112?source=rss-46e9a4dd247a------2</link>
            <guid isPermaLink="false">https://medium.com/p/57b654bce112</guid>
            <category><![CDATA[named-entity-recognition]]></category>
            <category><![CDATA[nlu]]></category>
            <category><![CDATA[text-processing]]></category>
            <category><![CDATA[platform]]></category>
            <category><![CDATA[dataset]]></category>
            <dc:creator><![CDATA[Toufic Yammine]]></dc:creator>
            <pubDate>Wed, 12 Aug 2020 06:18:03 GMT</pubDate>
            <atom:updated>2020-08-12T06:18:03.816Z</atom:updated>
            <content:encoded><![CDATA[<h4>Your tool for text analysis and data extraction</h4><figure><img alt="Wisely’s logo consists of a purple owl and a green background." src="https://cdn-images-1.medium.com/max/400/1*x5rJDdDzw8s2TKL64rn6eA.jpeg" /><figcaption>Wisely’s Logo</figcaption></figure><p>Hello reader,</p><p>We are Cheryl Sarrouh and Toufic Gerges Yammine, Computer and Communication Engineering students at the University of Saint-Joseph Beirut. For our final year project, we have chosen to work on a subject in collaboration with the HumanTech institute of HEIA Fribourg, Switzerland.</p><p>Throughout this article we will be displaying the main components of our project for all of you to read and enjoy.</p><p>Hopefully, we will leave you with something to reflect upon.</p><h3>The Problem with Textual Data</h3><p>Humans, being the most advanced species on earth, have created an even more complex and diverse way to communicate and share information. With a total of 6500 languages, this information that is mainly present in textual form is not exploitable.</p><p>Text is highly unstructured by nature and we use it in every interaction. By speaking, tweeting and sending messages on various online platforms, we are generating a huge amount of data daily, out of which only 21% are structured and can be used to produce significant and actionable insights.</p><blockquote>Only 21% of the textual data we emit is exploitable.</blockquote><p>Most of the technologies we use today rely on verbal interactions with machines. Siri, Alexa, Google Assistant, everything from voice recognition to machine translation, spell check and voice text messaging, can be hugely improved with a proper exploitation of the textual data we mentioned earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*Zt2-ZDY0MrTlURpN18aDbg.jpeg" /><figcaption>Major Machine Assistants</figcaption></figure><p>However, intelligence and value within a company is done through data analysis and machine learning. In order to define working models, different steps are required: clean, format, annotate and store the data, then train and evaluate the model, to finally predict outcomes based on new data. A lot of work can be simplified and streamlined. This project aims at building tools that simplify these processes.</p><h3>Natural Language Processing</h3><p>The science that deals with the structuration of the textual data that we previously mentioned, is Natural Language Processing or what is known as <strong><em>NLP</em></strong>.</p><p><strong><em>NLP</em></strong> is a branch of Artificial Intelligence whose purpose is to analyze, structure and find meaning in text and speech. <strong><em>NLP</em></strong> deals with subject such as machine translation, sentiment analysis and information extraction from text. There are many sub-tasks to <strong><em>NLP</em></strong>, the two addressed in this project are Named Entity Recognition and Natural Language Understanding.</p><h3>Thus, Our Solution</h3><p>The need for a platform permitting textual analytics techniques for all, becomes essential. This is where <strong>Wisely </strong>comes in handy.</p><p>In a nutshell, Wisely provides two of the most used sub-tasks of Natural Language Processing: Named Entity Recognition and Natural Language Understanding. Using our platform, a non-technical user can import their own dataset, do the necessary treatments and export the results for future usages. The results will be the dataset entries joined by the entities in each line for <strong><em>NER</em></strong>, or by the entities and intents in the case of <strong><em>NLU</em></strong> treatment.</p><p>This article has the intention of helping you get a better understanding of how Wisely works by giving you its implementation details from all the aspects.</p><h3>Data Import</h3><p>Our first task was to prepare the datasets uploaded by the user for treatment.</p><p>The user specifies the dataset’s name, language, description and type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*N-dbAnA7zKwb_ccu8fJRZw.jpeg" /><figcaption>Adding a Dataset</figcaption></figure><p>The types we support currently are either WhatsApp conversations or dialogues like debates for example. The whole is saved in an editable table in the “My datasets” tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WohvSsLQnJ6nIt3QqJGhnA.jpeg" /><figcaption>My Datasets Tab</figcaption></figure><p>WhatsApp conversations start with the date, the username then the message that we need to extract. Users can import their own WhatsApp conversations by selecting a chat then clicking on “Export Chat”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*p5hoAcpMywGTNUkgMQM6XQ.jpeg" /><figcaption>WhatsApp Format</figcaption></figure><p>Whereas debates start with the name of the speaker, then the message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*f999kO17hhsFZqFNv1Fr7A.jpeg" /><figcaption>Debate Format</figcaption></figure><h3>Named Entity Recognition</h3><p><strong><em>NER</em></strong>, also known as entity identification, entity chunking and entity extraction is a sub-task of information extraction that seeks to locate and classify named entities mentioned in unstructured text into predefined categories.</p><p>The entities we support on the platform are Person, Organization, Location, Date and Other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*4mzIVfqBOzjgYSfsfZSHqA.jpeg" /><figcaption>NER Result</figcaption></figure><p>We provide automatic annotation for our users, using a basic model, and for that we have used the SpaCy framework that we found to be the easiest to use, the most efficient, and the fastest in terms of getting results according to multiple studies that has compared it to other available frameworks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*aMBbYlgAsYNkz2QmfY1Z7A.jpeg" /><figcaption>SpaCy Logo</figcaption></figure><p>The user also has the option of improving the annotation by manually highlighting certain words that the basic model might have missed. The model will therefore be trained to detect these new entities for future annotations thus improving its accuracy.</p><h3>Natural Language Understanding</h3><p><strong><em>NLU</em></strong> is a subtopic of natural-language processing in Artificial Intelligence that deals with machine reading comprehension. There is considerable commercial interest in the field because of its application to automated reasoning, question answering, archiving, and large-scale content analysis.</p><p>To know more about NLU, we would recommend <a href="https://medium.com/empathic-labs/what-is-nlu-how-to-make-chatbots-understand-what-you-want-cecafff7aa7b">this article</a> written by our very own Jacky Casas.</p><p>Every data entry’s intent is specified in addition to highlighting the intent’s relevant entities. The user has the possibility of correcting the intent thus improving the model’s accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mpmkEjbLkNgx9X3RLTZEwA.png" /><figcaption>NLU Results</figcaption></figure><p>Like <strong><em>NER</em></strong>, the first time the user uses our <strong><em>NLU</em></strong> functionality, they will be using the basic model. Each model in <strong><em>NLU</em></strong> is defined by its list of intents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hiYMSFf_lQKaRSO3UN33ig.png" /><figcaption>NLU Models</figcaption></figure><p>The user adds the intents and each intent should have a name, a language, a description and a list of expressions that is essential for it to be detectable by the model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*HJ2_h55jM3D7sJ2UDkV0HQ.png" /><figcaption>Adding an intent</figcaption></figure><p>We have imported some intents into the platform as a base for the user, and they are saved in the “List of intents” in the “NLU” tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xUv4bPgRyNkn2d_5CX1ibA.png" /><figcaption>NLU Intents</figcaption></figure><p>For this functionality we have decided to use <a href="https://rasa.com/">RASA</a> which is an open-source AI framework that can be easily customized. Also, RASA can be run on our servers in our own environment without passing through a third party. This distinction ensures that the data stays in the platform, and one does not have to go through several servers in order to do what they want, which is really convenient for the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*-S2pbToB44UCgXpWqnx6SA.jpeg" /><figcaption><a href="https://rasa.com/">RASA</a> Logo</figcaption></figure><h3>Data Export</h3><p>Finally, the user exports the results that are stored in a dataset containing the original phrase, the entities in the case of <strong><em>NER</em></strong>, and the intents and their entities in the case of <strong><em>NLU</em></strong>.</p><p>The training data is exported in JSON format and the original dataset can be exported (if the user wishes to re-save it) in “txt” format.</p><h3>What’s to Come</h3><p>This project is a modest approach to the topic of pipelining an AI process. However, Wisely‘s journey is not over yet.</p><p>While the platform as it is enables useful functionalities, the field of <strong><em>NLP</em></strong> is broad, and we have only addressed 2 of its sub-tasks: <strong><em>NER </em></strong>and <strong><em>NLU</em></strong>. This doesn’t fully cover all future applications like sentiment analysis, machine translation and more.</p><p>For <strong><em>NER</em></strong>, only the 5 most basic entity categories (Person, Location, Organization, Date and Other) are now available on the platform and the user can still not add their own entity category and start using it to retrain models and annotate.</p><p>For <strong><em>NLU</em></strong>, the results largely depend on the intent’s expressions’ lists, and the availability of many expressions provided by the user: the more the platform is used for <strong><em>NLU</em></strong>, the better the models and the intent recognition will get.</p><p>Finally, data on our platform is mainly imported, converted to JSON and exported in JSON. This part can be also developed to include more formats like csv and BSON.</p><h3>Before We Leave You …</h3><p>We would like to thank everyone involved in this project for this enriching and eye-opening experience. Working on Wisely, supervised by supportive tutors and instructors, will forever stay with us leaving a positive mark on both our professional and personal lives.</p><p>We hope you enjoyed this article, and that it helped you grasp the idea of Wisely and how you would use it for your upcoming projects.</p><p>Best of Luck,</p><p>Cheryl Sarrouh and Toufic Yammine.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F4iFpaEhrLVE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D4iFpaEhrLVE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F4iFpaEhrLVE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/162995d877cd46e0943ecec6dda87999/href">https://medium.com/media/162995d877cd46e0943ecec6dda87999/href</a></iframe><h3>Special thanks</h3><p>Prof. Elena Mugellini<br>Prof. Omar Abou Khaled<br>Jacky Casas<br>Karl Daher</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*qYgUNOtwT3XZuMiAyGmZgA.jpeg" /><figcaption><a href="https://www.heia-fr.ch/en/">HEIA-FR</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*pZ0Ewhw1TtQ0aKPiCo8jXw.png" /><figcaption><a href="http://humantech.institute/">HumanTech</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*nkqT5JYXtRdWOOcBzujmlA.jpeg" /><figcaption><a href="https://empathiclabs.ch/">Empathic Labs</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*SrmejpbVkgI-MuO1SaToZw.png" /><figcaption><a href="https://fi.usj.edu.lb/une.php">University of Saint-Joseph Beirut</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57b654bce112" width="1" height="1" alt=""><hr><p><a href="https://medium.com/empathic-labs/introducing-wisely-57b654bce112">Introducing Wisely</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>