<?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 NOUHAILA DRAIDAR on Medium]]></title>
        <description><![CDATA[Stories by NOUHAILA DRAIDAR on Medium]]></description>
        <link>https://medium.com/@nouhailadraidar1?source=rss-95593e513145------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NdBEERWSulL8qNtfKFVqqQ.jpeg</url>
            <title>Stories by NOUHAILA DRAIDAR on Medium</title>
            <link>https://medium.com/@nouhailadraidar1?source=rss-95593e513145------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 15:51:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nouhailadraidar1/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[Expanding My Fintech Scope : From Data to the Payments Core]]></title>
            <link>https://medium.com/@nouhailadraidar1/expanding-my-fintech-scope-from-data-to-the-payments-core-bdbecaffa8e6?source=rss-95593e513145------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdbecaffa8e6</guid>
            <category><![CDATA[payment-gateway]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[payments]]></category>
            <dc:creator><![CDATA[NOUHAILA DRAIDAR]]></dc:creator>
            <pubDate>Sat, 26 Apr 2025 11:24:06 GMT</pubDate>
            <atom:updated>2025-04-26T11:24:06.706Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Expanding My Fintech Scope : From Data to the Payments Core</strong></h3><p>For years, I worked with fintech data: building models, detecting fraud, forecasting patterns. But the deeper I went, the more I realized that understanding the numbers wasn’t enough.<br>I wanted to get closer — not just to the outputs, but to the very <strong>Payments Core</strong> where the real decisions happen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4N1viNkNSVJ-tIZF0VB1Ow.png" /></figure><h4>My Data Journey in Fintech</h4><p>As a data and AI scientist with a strong mathematical background, I spent years building predictive models, analyzing behavioral patterns, detecting fraud, and developing dashboards that brought clarity to financial decision-making.</p><p>During the final years of my master’s program, I noticed a pattern: every time I had the freedom to choose a project, I chose fintech. My year-long internship in a bank — my first real professional experience — confirmed it. Later, my end-of-studies internship was with one of the most renowned companies in electronic payment solutions. That’s when I realized: whenever I had the chance, I went straight to fintech.</p><p>Every use case I worked on, from anomaly detection to forecasting, was rooted in this world. And I loved every part of it.</p><p>But the deeper I went, the more I started to feel a gap.</p><h4>The Moment I Wanted More</h4><p>I could see patterns. I could optimize outputs. I could model and predict behavior. Mathematically, everything was great. But I started asking myself: <em>What makes a model truly reliable?</em> <em>How can I optimize my analysis without disconnecting from reality?</em> <em>Where do these numbers even come from?</em></p><p>What triggers a transaction? What defines a rejection? What really happens when a card is swiped — or declined? What is an authorization? A network? A switch?</p><h4>Stepping into the Payments Core</h4><p>These questions became a turning point.</p><p>I decided to step out of my comfort zone and into the core of the business. As soon as I graduated, I became a <strong>Payments Systems Project Engineer</strong> at <strong>HPS</strong>, a leading player in global electronic payment solutions — where every transaction tells a deeper story than numbers alone.</p><p>Not to abandon data — I still use it every day — but to <strong>deepen my fintech expertise</strong>. Now, I understand how the systems work, and I’m actually able to translate a technical question into a business one, and vice versa. That’s exactly what I was aiming for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w9bTHBJUDjC_8e3d3UBmJg.png" /></figure><h4>Lessons Learned Along the Way</h4><ol><li><strong>Understanding systems brings depth to data.<br></strong>Before, I was working with outputs. Now, I understand the inputs, the architecture, and the logic that generates them. That makes my perspective on data far more complete and insightful.</li><li><strong>Fintech is about precision, not just speed.<br></strong>In payments, milliseconds matter — but so does the exact configuration of a card, a product, a rule. I’ve learned that reliability depends on deeply understanding every piece of the chain.</li><li><strong>The best insights come from both sides — data and operations.<br></strong>This experience taught me that the most valuable professionals are those who can navigate between technical models and operational systems, translating both into action.</li><li><strong>Data tells a story, but systems define the plot.<br></strong>It’s one thing to explain what the data shows — it’s another to explain <em>why</em> it behaves that way, based on how the system was built or how the rules were configured. That level of context changes how stakeholders listen.</li><li><strong>Being close to the product makes you think like an owner.<br></strong>When you’re involved in the execution layer — system configuration, incident handling, client-side impacts — your mindset shifts. You’re not just analyzing performance. You’re actively contributing to it.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XbatujM8pnrJnqzPIav2lA.png" /></figure><p>Today, I’m not just finding patterns or analyzing what happened.<br>I’m part of the mechanism that makes sure it <strong><em>does</em></strong> happen.<br>And that’s exactly the kind of impact I was looking for. Because in the Payments Core, understanding is not enough, <strong>execution shapes reality.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdbecaffa8e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is AI Just ChatGPT? Think Again.]]></title>
            <link>https://medium.com/@nouhailadraidar1/is-ai-just-chatgpt-think-again-4e49e449948d?source=rss-95593e513145------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e49e449948d</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[NOUHAILA DRAIDAR]]></dc:creator>
            <pubDate>Mon, 23 Sep 2024 20:06:37 GMT</pubDate>
            <atom:updated>2024-09-23T20:06:37.351Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*waPOpiWrDYgT_ElM.png" /><figcaption>Picture from <a href="https://ianochiengai.substack.com/p/what-is-ai-and-how-does-chatgpt-work">here</a></figcaption></figure><p>Is ChatGPT or other virtual assistants the first thing your mind jumps to when you hear AI? No? Well, good for you! Because for most people, that’s exactly what they think of. And while conversational agents are a fascinating part of artificial intelligence, let me tell you, AI is so much more than chatbots. It’s transforming industries everywhere, from diagnosing diseases to driving cars and creating personalized experiences just for you.</p><p>By the end of this article, you’ll see AI in a whole new light — and you’ll know it’s definitely not <em>just</em> about chatbots.</p><p><strong>So, What Exactly Is AI?</strong></p><p>At its core, artificial intelligence (AI) is all about getting machines to do things that would normally require human intelligence. Think of it like teaching a computer how to <em>think, </em>whether that’s learning to recognize patterns, understand language, or even make decisions. AI powers everything, from the algorithms recommending your next Netflix binge, to systems that can help diagnose illnesses by scanning medical images.</p><p>In simple terms, AI is the technology that makes machines smart enough to do things that usually only humans can do, but with a lot more speed and precision.</p><p>Now, you might have heard the buzzwords like <em>“machine learning”</em>, “<em>deep learning</em>”, or “<em>neural networks</em>” being thrown around, don’t worry, I will break it down without all the confusing jargon.</p><p><strong>Data Science</strong></p><p>Think of data science as the foundation of AI. It’s all about collecting, analyzing, and making sense of data. Without data, AI wouldn’t exist. Data scientists are like detectives, looking through massive amounts of information to find patterns or insights that AI can use, it all starts with data science.</p><p><strong>Machine Learning (ML)</strong></p><p>If data science is the foundation, machine learning is the engine. ML is a branch of AI that gives machines the ability to learn from data without being explicitly programmed for every single task. Instead of giving the machine step-by-step instructions, you feed it lots of data, and it figures things out on its own. For example, when you watch a movie on Netflix and it suggests others you might like, that’s ML in action, it learned your preferences by analyzing what you’ve watched before.</p><p><strong>Deep Learning (DL)</strong></p><p>Now, imagine if machine learning had a “turbo mode”, that’s deep learning. It’s a more advanced form of machine learning that uses something called neural networks (we’ll get to those in a second). DL excels at understanding complex patterns in huge amounts of data, like recognizing faces in a photo. It’s why self-driving cars can recognize stop signs or why your phone can unlock with your face.</p><p><strong>Neural Networks (NN)</strong></p><p>This is where things get interesting. Neural networks are the secret sauce behind deep learning. They’re modeled loosely on the human brain, with layers of “neurons” that work together to analyze data and make decisions. The more layers, the “deeper” the network, which is why it’s called deep learning. NNs are great at complex tasks, like speech recognition, image analysis, or language translation — pretty much anything that involves tons of data and patterns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CqgblNL--Zbq1fX7" /><figcaption>Picture from <a href="https://www.bing.com/images/search?view=detailV2&amp;ccid=AoKDjlTV&amp;id=692FBAACF0F0FDE5FA30685E4D9D4C3CE9DDBCFB&amp;thid=OIP.AoKDjlTVx-x1zbEgRtpqpgHaFK&amp;mediaurl=https%3A%2F%2Fstatic.javatpoint.com%2Ftutorial%2Fmachine-learning%2Fimages%2Fdata-science-vs-machine-learning.png&amp;cdnurl=https%3A%2F%2Fth.bing.com%2Fth%2Fid%2FR.0282838e54d5c7ec75cdb12046da6aa6%3Frik%3D%252b7zd6TxMnU1eaA%26pid%3DImgRaw%26r%3D0%26sres%3D1%26sresct%3D1%26srh%3D799%26srw%3D1146&amp;exph=349&amp;expw=500&amp;q=machine+learning+AI+data+science&amp;simid=607993286370291245&amp;FORM=IRPRST&amp;ck=C26AE44016AA01A4BFBC9940844156C8&amp;selectedIndex=30&amp;itb=1&amp;cw=1145&amp;ch=544&amp;ajaxhist=0&amp;ajaxserp=0">javapoint.com</a></figcaption></figure><p><strong>Real-World Applications of AI: It’s Everywhere</strong></p><p>Now that we’ve covered the basics of how AI works, let’s talk about some of the fascinating ways AI is transforming industries around the globe. AI isn’t just something tucked away in a lab actually, it’s already powering many aspects of our daily lives, often in ways you might not even realize.</p><p><strong>Natural Language Processing (NLP)</strong><br>This is the branch of AI that helps machines understand and process human language. Every time you ask Siri to set a reminder, use Google Translate, or get a response from a chatbot, NLP is at work. It’s also used in more complex tasks like sentiment analysis, where companies can gauge how customers feel based on reviews or social media posts. I already wrote a post about how NLP works <a href="https://medium.com/@nouhailadraidar1/the-fundamentals-of-nlp-you-need-to-know-d0933a2dbaa7"><strong>here</strong></a> if you want to know more about it.</p><p><strong>Computer Vision</strong><br>If you’ve ever unlocked your phone with your face or seen a self-driving car in action, you’ve witnessed computer vision in play. AI is used to teach machines to “see” and interpret the world through images and videos. This technology is used in everything from facial recognition software to medical imaging where AI can help detect diseases earlier than human doctors.</p><p><strong>Robotics</strong><br>AI in robotics is another game-changer. From warehouse robots that sort and move products to drones delivering packages, AI helps robots make decisions, learn from their environment, and optimize their tasks. Robotics and AI are also used in surgery, assisting doctors with precision and care.</p><p><strong>Recommendation Systems</strong><br>Ever wonder how Netflix seems to always know what you might like next? That’s AI working behind the scenes through recommendation systems. — Oh, how many amazing songs I discovered thanks to Spotify’s recommendations system… Anyways, these systems analyze your behavior, what you’ve watched, clicked, or bought — and use machine learning to suggest other things you might enjoy.</p><p><strong>Reinforcement Learning</strong><br>You might have heard of AI beating humans at games like chess, that’s reinforcement learning at work. It’s a special type of machine learning where AI learns by trial and error, getting better at its tasks over time. It’s also being used to train autonomous systems like robots and self-driving cars to make real-time decisions and improve with experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*yHyeBDorgl61n3CfK3VG8w.png" /><figcaption>Different applications of<a href="https://www.bing.com/images/search?view=detailV2&amp;ccid=YxIOicyh&amp;id=8E49F58AABE505327E010E8A43FE702A72CFE429&amp;thid=OIP.YxIOicyhhWXldIsY7aozhQHaHa&amp;mediaurl=https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A650%2F1*ziz-hhHGOe1qMRMardy0kA.jpeg&amp;cdnurl=https%3A%2F%2Fth.bing.com%2Fth%2Fid%2FR.63120e89cca18565e5748b18edaa3385%3Frik%3DKeTPcipw%252fkOKDg%26pid%3DImgRaw%26r%3D0&amp;exph=650&amp;expw=650&amp;q=different+applications+of+AI&amp;simid=608028904548427182&amp;FORM=IRPRST&amp;ck=19719EFA5D3309E4FD4C5524F34FCD04&amp;selectedIndex=7&amp;itb=0&amp;cw=1145&amp;ch=544&amp;ajaxhist=0&amp;ajaxserp=0"> AI</a></figcaption></figure><p>AI is already doing amazing things, but it’s just getting started. We’ve barely scratched the surface of its potential. It’s going to shape the future in ways we can only imagine today. But one thing is for sure — AI is much more than chatbots, and its impact is everywhere, quietly improving everything around us.</p><p>That’s it for this post! I felt like a quick introduction to AI and data science was necessary before diving into projects and real-world applications, so that everyone can follow along, not just those with an intermediate-advanced technical background. AI is a vast field, and now that you know the basics, you’re ready to explore the more exciting and detailed applications that are transforming the world as we know it.</p><p>Stay tuned for the next post, we will talk about algorithms! (Yay)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e49e449948d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BOOK #3 : The Picture of Dorian Gray]]></title>
            <link>https://medium.com/@nouhailadraidar1/book-3-the-picture-of-dorian-gray-bc9814d0c196?source=rss-95593e513145------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc9814d0c196</guid>
            <category><![CDATA[literature]]></category>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[oscar-wilde]]></category>
            <category><![CDATA[classics]]></category>
            <category><![CDATA[books]]></category>
            <dc:creator><![CDATA[NOUHAILA DRAIDAR]]></dc:creator>
            <pubDate>Thu, 01 Aug 2024 21:07:32 GMT</pubDate>
            <atom:updated>2024-08-01T21:16:29.365Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*kVpsq8QOVeMR_-Y6urE8PQ.png" /><figcaption>Picture generated using AI by the author</figcaption></figure><h3>BOOK #3 : The Picture of Dorian Gray</h3><h4>Oscar Wilde</h4><p><strong>The Picture of Dorian Gray</strong> by Oscar Wilde is a fascinating look at vanity, morality, and the effects of living for pleasure without thinking about the consequences. Set in late 19th-century London, the story follows Dorian Gray, a young man whose portrait ages while he stays forever young and handsome.</p><p>Wilde’s writing is brilliant, full of clever humor, social commentary, and deep insights into human nature. Through Dorian’s journey into moral decay, Wilde shows us the dangers of valuing beauty and pleasure above all else.</p><p>At its core, <strong>The Picture of Dorian Gray</strong> is a warning about the risks of vanity and living a life without moral responsibility. As Dorian becomes more obsessed with his looks and indulges in a life of excess, his portrait becomes a haunting reminder of the true cost of his actions.</p><p>Throughout the novel, Wilde’s writing is both beautiful and thought-provoking, blending themes of art, beauty, and humanity with ease. <strong>The Picture of Dorian Gray</strong> is just as relevant today as it was when it was first published, offering a timeless look at the human condition and the consequences of our choices.</p><p>I enjoyed reading it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iaQTK7qH119z1c47.jpg" /><figcaption>Picture of V<a href="https://www.bing.com/images/search?view=detailV2&amp;ccid=HDIv7Nvi&amp;id=D9339398AE734C4DAB88A597FEA9D27FB661AE88&amp;thid=OIP.HDIv7NviT2D6IUIGk1EqYgHaEW&amp;mediaurl=https%3a%2f%2flondontopia.net%2fwp-content%2fuploads%2f2021%2f06%2fGetFileAttachment2.jpg&amp;cdnurl=https%3a%2f%2fth.bing.com%2fth%2fid%2fR.1c322fecdbe24f60fa21420693512a62%3frik%3diK5htn%252fSqf6XpQ%26pid%3dImgRaw%26r%3d0&amp;exph=1203&amp;expw=2048&amp;q=victorian+england&amp;simid=607989661392847019&amp;FORM=IRPRST&amp;ck=06363C6E0161DCDB485E9A57DB430C3F&amp;selectedIndex=0&amp;itb=0&amp;ajaxhist=0&amp;ajaxserp=0">ictorian London</a></figcaption></figure><p>I’ve gathered 31 quotes that marked me from the book. I hope you can connect with at least some of them.</p><ol><li>“Experience is merely the name men gave to their mistakes.”</li><li>“There is no such thing as a good influence, Mr. Gray. All influence is immoral.”</li><li>“Nowadays people know the price of everything and the value of nothing.”</li><li>“You will always be fond of me. I represent to you all the sins you never had the courage to commit.”</li><li>“To define is to limit.”</li><li>“Every portrait that is painted with feeling is a portrait of the artist, not of the sitter.” <em>Deep</em></li><li>“The books that the world calls immoral are books that show the world its own shame.”</li><li>“I am too fond of reading books to care to write them.”</li><li>“The only way to get rid of a temptation is to yield to it.”<em> Sometimes.. what do you think about this one?</em></li><li>“Nothing can cure the soul but the senses, just as nothing can cure the senses but the soul.”</li><li>“I have grown to love secrecy. It seems to be the one thing that can make modern life mysterious or marvelous to us.”</li><li>“Behind every exquisite thing that existed, there was something tragic.”</li><li>“When the gods wish to punish us they answer our prayers.”</li><li>“It is better to be beautiful than to be good. But it is better to be good than to be ugly.”</li><li>“There is only one thing in the world worse than being talked about, and that is not being talked about.”</li><li>“We are all in the gutter, but some of us are looking at the stars.”</li><li>“You cannot hide from the consequences of your actions.”</li><li>“The mystery of love is greater than the mystery of death.”</li><li>“Laughter is not at all a bad beginning for a friendship, and it is by far the best ending for one.”</li><li>“Never marry at all, Dorian. Men marry because they are tired, women, because they are curious: both are disappointed.”</li><li>“Every saint has a past, and every sinner has a future.”</li><li>“Those who find ugly meanings in beautiful things are corrupt without being charming. This is a fault. Those who find beautiful meanings in beautiful things are the cultivated. For these there is hope. They are the elect to whom beautiful things mean only Beauty.”</li><li>“There is no such thing as a moral or an immoral book. Books are well written, or badly written.”</li><li>“I have the simplest tastes. I am always satisfied with the best.”</li><li>“It is through art, and through art only, that we can realize our perfection.”</li><li>“Some things are more precious because they don’t last long.”</li><li>“To live is the rarest thing in the world. Most people exist, that is all.” <em>Wow</em></li><li>“What does it profit a man if he gain the whole world and lose his own soul?”</li><li>“Each of us has heaven and hell in him.”</li><li>“She is all the great heroines of the world in one. She is more than an individual. I love her, and I must make her love me. I want to make Romeo jealous. I want the dead lovers of the world to hear our laughter, and grow sad. I want a breath of our passion to stir dust into consciousness, to wake their ashes into pain. ”<em> Cute</em></li><li>“A man can be happy with any woman as long as he does not love her.”</li></ol><p>If you enjoyed this collection, please don’t hesitate to suggest another book you think I should explore next. ✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc9814d0c196" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Classroom to Corporate : Lessons from My Internships]]></title>
            <link>https://medium.com/@nouhailadraidar1/from-classroom-to-corporate-lessons-from-my-internships-ce1ae0043070?source=rss-95593e513145------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce1ae0043070</guid>
            <category><![CDATA[organization]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[corporate-culture]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[students]]></category>
            <dc:creator><![CDATA[NOUHAILA DRAIDAR]]></dc:creator>
            <pubDate>Mon, 29 Jul 2024 13:56:11 GMT</pubDate>
            <atom:updated>2024-07-29T13:56:11.109Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learned them the hard way so you won’t have to</h4><p>My name is Nouhaila, and I graduated a few weeks ago with a master’s degree in Data Science and Artificial Intelligence. Throughout my academic journey, I seized every opportunity to intern, never having a free summer since before my bachelor’s degree. During my master’s program, I managed to balance internships with my studies, working and learning at the same time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*EsfeDmt3wRCiJRzziTr1AA.png" /><figcaption>Picture from my <a href="https://www.linkedin.com/in/nouhailadraidar/">Linkedin </a>profile</figcaption></figure><p>People always told me to slow down, that I was going to work at some point, that I didn’t need to go this hard on myself doing two things that needed 100% of me at the same time, that it wasn’t going to be easy. And it wasn’t, in fact, it was really hard, because I took both responsibilities seriously, aiming to graduate with high honors (mention très bien) and secure a job offer from one of the big organizations where I interned for the last two and a half years. And guess what, I achieved both of these goals, and I’m here to share what I learned along the way.</p><h4><strong>1. Hard work does always pay</strong>.</h4><p>Hard work does always pay, don’t let anyone fool you into thinking that a lot of people work hard and still get nothing. You don’t need to compare yourself with people who didn’t get what they worked hard for, because maybe they lacked something you don’t, maybe they have put their efforts into areas that were not the best fit for them, maybe some people simply need to work harder than others because everyone has different abilities and environments that affect their outcomes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MuRN_BHqWnp0dK_G" /><figcaption>Picture from Unsplash</figcaption></figure><h4><strong>2. Don’t compare yourself.</strong></h4><p>The worst thing that can happen to someone who needs to work hard and maintain motivation and discipline is comparing themselves to others. If seeing people achieve what you want faster and more easily doesn’t inspire or motivate you, you will waste a lot of time watching them, and trust me, your confidence will take a hit. Everyone has their own pace, environment, and abilities. Even two siblings under the same roof, with the same parents, education, and tastes, can have different paths to achieving their goals. They won&#39;t necessarily get what they want at the same time or in the same way. So, know what you want, work for it, get inspired, but never compare yourself to others.</p><h4><strong>3. Sometimes, It Doesn’t Happen for a Reason.</strong></h4><p>I wanted to be an architect for as long as I can remember, but I couldn’t, and I was too upset and disappointed in myself that I couldn’t even like anything else. I was very skilled in drawing houses and buildings, making plans and everything, and I found it unfair that there were some people with not even half my skills, able to be what I dreamt of for my whole life (I was a big fan of comparisons).</p><p>Now, five years later, with all the changes that happened to me as a person, and all the things I learned about myself that I didn’t know at the time, I’m very happy with the choices that brought me to where I am today. I am very happy that five years ago I couldn’t get accepted into that architecture school, because the me I grew to be is much happier with her choices now than she would be with what she wanted at 18. So, whatever you want and doesn’t happen, it’s for a good reason, either it will happen at the right time, or better things are coming instead.</p><h4><strong>4. Make mistakes, it’s not the end of the world.</strong></h4><p>We’re not born knowing everything; in fact, we’ve learned everything we know. A baby learning to walk keeps falling until they don’t. And it’s amazing to think we were all that baby once — if we had given up on walking, we’d probably be crawling to work in our corporate suits. Maybe even high heels wouldn’t exist. Anyways, you’ll keep making mistakes until you learn from them. And that’s okay. The sooner you understand this, the easier it will be to embrace and learn from your mistakes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*PrpM6WqeaFvIGUO_-_s5-w.png" /><figcaption>Picture from Unsplash</figcaption></figure><h4><strong>5. Done is better than perfect.</strong></h4><p>And it’s totally <strong>something</strong> coming from a perfectionist like myself. I learned this one specifically during my internships, where I dealt with real-life problems and data that were far from the neat Kaggle datasets. The data were literally everything except perfect — dirty and unorganized — which made every attempt at automation harder than expected. It was simply imperfect.</p><p>At first, I tried to do what I do best: force it to be perfect. But it was painfully impossible — the whole system needed to change, and in big companies, such changes take years. So, I had to learn a skill that I find really important:<em> adaptation</em>. I started thinking about what I could do to improve what I had with the possibilities and time I had, and it was a success. It perfectly answered the needs of the stakeholders, and everyone was happy, including me.</p><h4>6. Collaboration is Key</h4><p>Working in a real-world environment taught me the value of teamwork and collaboration. Unlike academic projects where I often worked alone, my internships required me to collaborate with cross-functional teams. At first, I had no choice but to ask for everything I needed, which wasn’t easy for me since I was used to working alone. However, it gradually became easier, and before long, I was initiating calls to ensure we had diverse perspectives. I learned that it’s these diverse perspectives that lead to innovative solutions and ensure smooth project execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*0SpUx0zkcGoBfdz2kQlowA.png" /><figcaption>Picture from Unsplash</figcaption></figure><h4>7. Admit your wrongs</h4><p>I remember this one time when I built a strategy and created a whole data automation process from collection to visualization. Everything seemed great, and the stakeholders were enchanted. After a few weeks, I discovered a new pattern in a data that I didn’t have access to before. I had to rebuild a new strategy and adapt it to the new information I had received. Admitting I was wrong was hard. I was afraid I would lose the admiration and trust of my colleagues, but I did it anyway.</p><p>It’s okay to change your mind once you get new information. You admit it, accept it, and learn from it. Don’t avoid an instant discomfort and waste a wonderful occasion to show you’re accountable and willing to learn. I’d rather admit I changed my mind after receiving new information, or acknowledge that I was wrong and solve the issue while I can, than continue down the wrong path and lead everyone into it just because my ego wouldn’t take the fall. I find it admirable and trustworthy to own up to mistakes, not the opposite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*j5PN4WCfvQW7hayjMTIjdg.png" /><figcaption>Picture from <a href="https://unsplash.com/fr/photos/des-routes-difficiles-menent-a-de-belles-destinations-decor-de-bureau-z1d-LP8sjuI">Unsplash</a></figcaption></figure><p>My journey from academia to industry has been filled with valuable lessons, challenges, and growth. I hope these insights help you in your own journey, reminding you that hard work, adaptability, and a positive mindset can lead to remarkable achievements.</p><p>Remember, it’s okay to make mistakes and admit when you’re wrong. Embrace continuous learning and collaboration, and don’t compare yourself to others, everyone has their unique path, and what matters most is staying true to your goals and working hard towards them.</p><p>Thank you for taking the time to read about my experiences. I hope they inspire you to go through your challenges and achieve your dreams.</p><p><em>Ps:</em> <em>Share with me your thoughts, and anything else you’d want me to write about, I will definitely welcome your suggestions.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce1ae0043070" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PROJECT : Easy Application of the NLP concepts]]></title>
            <link>https://medium.com/@nouhailadraidar1/project-easy-application-of-the-nlp-concepts-ed05f78f4bf4?source=rss-95593e513145------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed05f78f4bf4</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[text-classification]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[NOUHAILA DRAIDAR]]></dc:creator>
            <pubDate>Thu, 16 Nov 2023 21:08:57 GMT</pubDate>
            <atom:updated>2023-11-16T21:08:57.883Z</atom:updated>
            <content:encoded><![CDATA[<h3>Project: Basic Application of the NLP concepts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*igr00xC5gARzSiWG1VNeiA.png" /></figure><p>Based on the fundamental concepts we explored in the last <a href="https://medium.com/@nouhailadraidar1/the-fundamentals-of-nlp-you-need-to-know-d0933a2dbaa7">article</a>, let’s dive into an application of Natural Language Processing (NLP) — spam messages detection.</p><h4>Importing dependencies &amp; data</h4><p>These are the libraries we will need for our project.</p><pre>#import dependencies<br><br>import pandas as pd<br>import string<br>import nltk<br>from nltk.corpus import stopwords<br>from nltk.tokenize import word_tokenize<br>import re<br>from nltk import WordNetLemmatizer<br>from wordcloud import WordCloud<br>import matplotlib.pyplot as plt<br>from bs4 import BeautifulSoup</pre><pre>#import data<br>df = pd.read_csv(&#39;SMSSpamCollection.csv&#39;,sep=&#39;\t&#39;,header=None)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*aJwzw3Bw3MpCOi1qyiFmnw.png" /><figcaption>Output 1</figcaption></figure><h4>Data Preprocessing</h4><ol><li><strong>Changing column names</strong></li></ol><pre>#Let&#39;s change the name of the columns<br>df.columns = [&#39;label&#39;, &#39;msg&#39;]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*hfvhMnRgj027gyuOeOarBA.png" /><figcaption>Output 2</figcaption></figure><p>Let’s display a row from ‘msg’:</p><pre>text = df.msg[1]<br>print(text)<br><br>#Output<br>&quot;Free entry in 2 a wkly comp to win FA Cup final tkts 21st May 2005. <br>Text FA to 87121 to receive entry question(std txt rate)T&amp;C&#39;s apply <br>08452810075over18&#39;s&quot;</pre><p>2. <strong>Lower text</strong></p><pre>#This will lower the text<br>text = text.lower()<br><br>#Output<br>&quot;free entry in 2 a wkly comp to win facup final tkts 21st may 2005. <br>text fa to 87121 to receive entry question(std txt rate)t&amp;c&#39;s apply <br>08452810075over18&#39;s&quot;</pre><p>3. <strong>Remove numbers</strong></p><p>We will use regular expressions to remove numbers. This code will replace each character that matches the regular expression below with “”.</p><pre>regex = re.compile(&quot;\d+&quot;)<br>text = regex.sub(&quot;&quot;, text)<br><br>#Output<br>&quot;free entry in a wkly comp to win facup final tkts st may . <br>text fa to to receive entry question(std txt rate)t&amp;c&#39;s apply over&#39;s&quot;</pre><p>4. <strong>Remove punctuation</strong></p><p>This code will will loop through every character in the text and replace every punctuation in the text with “”.</p><pre>text = &quot;&quot;.join(c for c in text if c not in string.punctuation)<br><br>#Output<br>&quot;free entry in a wkly comp to win facup final tkts st may<br>text fa to to receive entry question std txt rate tcs apply overs&quot;</pre><p>5. <strong>Tokenization</strong></p><p>This code will tokenize the text. As we’ve seen in the last article, tokenization is the process that changes a text into a list of fragments (words, sentences...etc) that are named tokens.</p><pre>tokens = word_tokenize(text)<br><br>#Output<br>[&#39;free&#39;, &#39;entry&#39;, &#39;in&#39;, &#39;a&#39;, &#39;wkly&#39;, &#39;comp&#39;, &#39;to&#39;, &#39;win&#39;, &#39;facup&#39;, <br>&#39;final&#39;, &#39;tkts&#39;, &#39;st&#39;, &#39;may&#39;, &#39;text&#39;, &#39;fa&#39;, &#39;to&#39;, &#39;to&#39;, &#39;receive&#39;, &#39;entry&#39;,<br> &#39;question&#39;, &#39;std&#39;, &#39;txt&#39;, &#39;rate&#39;, &#39;tcs&#39;, &#39;apply&#39;, &#39;overs&#39;]</pre><p>6. <strong>Remove stop words</strong></p><p>Words like ‘to’, ‘and’, are named stop words. They have no positive impact on our analysis, so let’s remove them.</p><pre>text = [word for word in tokens if word not in nltk.corpus.stopwords.words(&#39;english&#39;)]<br><br>#Output<br>[&#39;free&#39;, &#39;entry&#39;, &#39;wkly&#39;, &#39;comp&#39;, &#39;win&#39;,&#39;facup&#39;, &#39;final&#39;, &#39;tkts&#39;,&#39;st&#39;, &#39;may&#39;,<br>&#39;text&#39;,&#39;fa&#39;,&#39;receive&#39;,&#39;entry&#39;,&#39;question&#39;,&#39;std&#39;,&#39;txt&#39;, &#39;rate&#39;,&#39;tcs&#39;,&#39;apply&#39;, &#39;overs&#39;]</pre><p>We notice there are some irrelevant short words like ‘st’ that we need to remove too. We choose to remove words whose length is less than 2 characters, but you’re free to fix your condition as you wish, it depends on your problem.</p><pre>text = [word for word in tokens if len(word)&gt;2]<br><br>#Output<br>[&#39;free&#39;, &#39;entry&#39;, &#39;wkly&#39;, &#39;comp&#39;, &#39;win&#39;,&#39;facup&#39;, &#39;final&#39;, &#39;tkts&#39;, &#39;may&#39;, &#39;text&#39;,<br>&#39;fa&#39;,&#39;receive&#39;,&#39;entry&#39;,&#39;question&#39;,&#39;std&#39;, &#39;txt&#39;, &#39;rate&#39;,&#39;tcs&#39;,&#39;apply&#39;, &#39;overs&#39;]</pre><p>7.<strong> Lemmatization</strong></p><pre>text_lem = [lemmatizer.lemmatize(word) for word in text]<br>text = &quot; &quot;.join(text_lem)</pre><p>We can combine those lines of code in a single function so that we apply it all at once on our dataset.</p><p>8.<strong> Clean text function</strong></p><p>This is a function that groups it all, it will clean the ‘msg’ column of our dataset.</p><pre>lemmatizer = WordNetLemmatizer()<br>regex = re.compile(&quot;\d+&quot;)<br><br>def clean_text(text):<br>    #lower text<br>    text = text.lower()<br>    #remove numbers<br>    text = regex.sub(&quot;&quot;, text)<br>    #text with no punctuation<br>    text = &quot;&quot;.join(c for c in text if c not in string.punctuation)<br>    #tokenize words<br>    text_token = word_tokenize(text)<br>    #delete stop words+words with lentgh &gt;2<br>    text_sp = [word for word in text_token if word not in nltk.corpus.stopwords.words(&#39;english&#39;) and len(word)&gt;2]<br>    #stemming<br>    text_stem = [lemmatizer.lemmatize(word) for word in text_sp]<br>    text_out = &quot; &quot;.join(text_stem)<br>    return text_out<br><br>#Apply it on our dataset<br>df[&#39;clean_msg&#39;] = df[&#39;msg&#39;].apply(clean_text)<br>df.head(2)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RopWyzUjFnTZGOSgsra5Hw.png" /></figure><h4>EDA : Exploratory Data Analysis</h4><p><strong>Word Cloud of spam messages</strong></p><pre>spam_messages = df[df[&#39;label&#39;] == &#39;spam&#39;][&#39;clean_msg&#39;]<br>spam_cloud = WordCloud(width=800, height=400, background_color=&#39;white&#39;).generate(&quot; &quot;.join(spam_messages))<br><br>plt.figure(figsize=(10, 5))<br>plt.imshow(spam_cloud, interpolation=&#39;bilinear&#39;)<br>plt.title(&quot;Word Cloud of spam messages&quot;)<br>plt.axis(&#39;off&#39;)  <br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fUKzIPOqc5zwgQftbNd2qw.png" /></figure><p><strong>Word frequency analysis</strong></p><pre>from collections import Counter<br><br>spam_word_counts = Counter(&quot; &quot;.join(spam_messages).split())<br>ham_word_counts = Counter(&quot; &quot;.join(ham_messages).split())<br><br>print(&quot;Most common Spam words:&quot;, spam_word_counts.most_common(10))<br>print(&quot;Most common Ham words:&quot;, ham_word_counts.most_common(10))<br><br>#Output<br>Most common Spam words: [(&#39;call&#39;, 361), (&#39;free&#39;, 219), (&#39;txt&#39;, 150), (&#39;text&#39;, 138), (&#39;mobile&#39;, 136), (&#39;stop&#39;, 118), (&#39;claim&#39;, 115), (&#39;reply&#39;, 103), (&#39;prize&#39;, 94), (&#39;get&#39;, 83)]<br>Most common Ham words: [(&#39;get&#39;, 318), (&#39;ltgt&#39;, 276), (&#39;dont&#39;, 265), (&#39;come&#39;, 245), (&#39;got&#39;, 244), (&#39;call&#39;, 243), (&#39;know&#39;, 241), (&#39;ill&#39;, 238), (&#39;like&#39;, 234), (&#39;good&#39;, 225)]</pre><p><strong>Spam/Ham visualization</strong></p><pre>spam_count = df[df[&#39;label&#39;] == &#39;spam&#39;][&#39;label&#39;].count()<br>ham_count = df[df[&#39;label&#39;] == &#39;ham&#39;][&#39;label&#39;].count()<br> <br>explode = (0.1, 0) <br><br>plt.figure(figsize=(6, 6))<br>plt.pie([spam_count, ham_count], labels=[&#39;Spam&#39;, &#39;Ham&#39;], colors=[&#39;pink&#39;, &#39;green&#39;], explode=explode, autopct=&#39;%1.1f%%&#39;, startangle=140)<br>plt.axis(&#39;equal&#39;)  # Pour que le graphique soit un cercle<br><br>plt.title(&quot;Spam &amp; Ham distribution&quot;)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*_KORy_h1s3RSy8st6rQZJQ.png" /></figure><p><strong>TF-IDF</strong><br>TF-IDF operates on the principle of assigning weights to words based on their frequency within individual emails and their rarity across the entire email corpus. With ngram=(1,3), we choose to review the word (1), and all the combinaisons of it with another word (2), or two other words (3).</p><pre>from sklearn.feature_extraction.text import TfidfVectorizer<br><br>tfidf = TfidfVectorizer(ngram_range=(1, 3))  <br><br>features_tfidf = tfidf.fit_transform(df[&#39;clean_msg&#39;])<br>features_df = pd.DataFrame(features_tfidf.toarray(), columns=tfidf.get_feature_names_out())<br><br>features_df.head(1)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ixc8Axs3Epl9QilcJRy2rg.png" /></figure><h4><strong>Train Test Split</strong></h4><pre>X = features_df<br>y = pd.get_dummies(df.label, drop_first=True)<br><br>from sklearn.model_selection import train_test_split<br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25) </pre><h4><strong>Modelization</strong></h4><p><strong>SVM</strong></p><pre>from sklearn.svm import SVC<br>from sklearn.metrics import f1_score, accuracy_score, recall_score, precision_score<br><br>svm_model = SVC()<br>svm_model.fit(X_train, y_train)<br>y_pred_svm = svm_model.predict(X_test)<br><br>print(&quot;F1_score&quot;, f1_score(y_pred_svm,y_test))<br>print(&quot;Accuracy &quot;, accuracy_score(y_pred_svm,y_test))<br>print(&quot;Recall &quot;, recall_score(y_pred_svm,y_test))<br>print(&quot;Precision &quot;, precision_score(y_pred_svm,y_test))</pre><p><strong>Random Forest Classifier</strong></p><pre>from sklearn.ensemble import RandomForestClassifier<br>from sklearn.metrics import confusion_matrix<br><br>rf_model = RandomForestClassifier(n_estimators=300) #we improved it a little by changing hyperparameters<br>rf_model.fit(X_train, y_train)<br>y_pred_rf = rf_model.predict(X_test)<br><br>print(&quot;F1_score&quot;, f1_score(y_pred_rf,y_test))<br>print(&quot;Accuracy &quot;, accuracy_score(y_pred_rf,y_test))<br>print(&quot;Recall &quot;, recall_score(y_pred_rf,y_test))<br>print(&quot;Precision &quot;, precision_score(y_pred_rf,y_test))<br><br>sns.heatmap(confusion_matrix(y_test,y_pred_rf), annot=True, fmt=&quot;d&quot;, cmap=&quot;Blues&quot;)</pre><p>The accuracy using Random Forest Classifier (97%) is higher than SVM (95%).</p><h4>Conclusion</h4><p>This was a little guide and basic NLP project using the <strong>nltk</strong> library. I hope you found it informative.</p><p>See you in the next article!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed05f78f4bf4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Fundamentals of NLP You Need to Know]]></title>
            <link>https://medium.com/@nouhailadraidar1/the-fundamentals-of-nlp-you-need-to-know-d0933a2dbaa7?source=rss-95593e513145------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0933a2dbaa7</guid>
            <category><![CDATA[language-model]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[NOUHAILA DRAIDAR]]></dc:creator>
            <pubDate>Sun, 12 Nov 2023 11:49:34 GMT</pubDate>
            <atom:updated>2023-11-12T11:49:34.629Z</atom:updated>
            <content:encoded><![CDATA[<h4>A beginner&#39;s guide</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*xR_0m-2nv9uEw9-Ssz6qRQ.png" /></figure><p>In the vast landscape of technological advancements, Natural Language Processing (NLP) serves as a crucial link, bridging the gap between human communication and machine understanding. Let’s delve into the essentials of NLP you need to know to start your project.</p><h4>What is NLP?</h4><p>NLP is a subset of artificial intelligence (AI) that enables machines to comprehend, interpret, and generate human-like text.</p><h4>What are the fundamental Concepts of NLP?</h4><p>Here are some fundamental concepts before starting your NLP project.</p><p><strong>Preprocessing</strong></p><p>Like any other data science project, preprocessing is fundamental in NLP. it can involve removing punctuation, stop words, tokenization, Part-of-Speech Tagging, lemmatization, stemming, and much more.</p><p><strong>Tokenization</strong></p><p>It is the act of breaking down a text into individual units, usually words or phrases, these fragments named tokens, enable machines to navigate and understand the complexities of human language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*W_9rj8myd8Xyxm4ahHfHKQ.png" /><figcaption>Tokenization example. Representation by <a href="https://medium.com/u/95593e513145">NOUHAILA DRAIDAR</a></figcaption></figure><p><strong>Part-of-Speech Tagging</strong></p><p>It’s categorizing each word in a sentence into its grammatical function, nouns, verbs, adjectives, etc... By understanding the grammatical roles of words, machines can unravel the layers of human expression, discerning not just what is said but how it is said.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*7lfB-_wV6Ly1j6gdyrArbw.png" /><figcaption>POS Tagging example. Representation by <a href="https://medium.com/u/95593e513145">NOUHAILA DRAIDAR</a></figcaption></figure><p><strong>Named Entity Recognition (NER)</strong></p><p>Imagine reading a story where every character, place, and organization is highlighted. NER does exactly that, categorizing entities such as names, locations, and organizations, which is how machines can unravel the story within the text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*-zhJS_AA6SFcoWFF1-lqnQ.png" /><figcaption>NER example. Representation by <a href="https://medium.com/u/95593e513145">NOUHAILA DRAIDAR</a></figcaption></figure><p><strong>Stemming and Lemmatization</strong></p><p>Stemming involves reducing words to their root form, while lemmatization reduces them to their base or dictionary form. Both processes aim to unify different word forms to streamline text analysis by treating variations of words as a single entity, facilitating more accurate and efficient language processing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*rF6NCxt-DjOJYbE1j5TQeQ.png" /><figcaption>Lemmatization/Stemming example 1. Representation by <a href="https://medium.com/u/95593e513145">NOUHAILA DRAIDAR</a></figcaption></figure><p>Okay but if it has the same output, why are there two concepts and not only one? Well, actually it is not the same output since one reduces to base form and one to the root, but the root and base form are the same for the verb ‘read’. Here is another example for you:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*wLigdxQQRf62GTjQH1IIPw.png" /><figcaption>Lemmatization/Stemming example 2. Representation by <a href="https://medium.com/u/95593e513145">NOUHAILA DRAIDAR</a></figcaption></figure><p>The words ‘universe’ and ‘university’ have the same stemming output, because they have the same root. So, we can say that stemming just stems the word independently of its meaning.</p><p><strong>Text Representation</strong></p><ol><li><strong>Bag-of-Words (BoW) Model: </strong>BoW represents a document as an unordered set of words, disregarding grammar and word order but keeping track of word frequency.</li><li><strong>Term Frequency-Inverse Document Frequency (TF-IDF): </strong>TF-IDF measures the importance of a word in a document based on its frequency in the entire corpus, emphasizing rare words. It addresses the limitations of BoW by highlighting words that carry more meaningful information.</li><li><strong>Word Embeddings: </strong>This concept involves representing words as vectors in a multi-dimensional space, capturing their context and meaning through techniques like Word2Vec or GloVe, which helps preserving semantic relationships between words. The idea is that similar words should have similar vector representations.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*1A1ULMMXthyJO2Y5g_oUng.png" /><figcaption>Text Representation examples. Representation by <a href="https://medium.com/u/95593e513145">NOUHAILA DRAIDAR</a></figcaption></figure><h4><strong>Text Classification</strong></h4><p>Text classification is a supervised learning task where the goal is to assign predefined categories or labels to text based on its content using supervised learning algorithms, such as Support Vector Machines (SVM) or deep learning models.</p><p><strong>Sentiment analysis as a use case: </strong>It is a popular application of text classification. It involves determining the sentiment expressed in a piece of text, such as positive, negative, or neutral. For example, analyzing customer reviews to categorize them based on sentiment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*SJDQJLY4iZQgsutTItMmEA.png" /><figcaption>— No reference found —</figcaption></figure><h4>Sequence-to-Sequence Models</h4><p>Sequence-to-sequence (seq2seq) models are a type of neural network architecture designed for sequence translation tasks, where the goal is to convert one sequence of data into another. These models consist of an encoder and a decoder, allowing them to handle variable-length input and output sequences.</p><p><strong>Applications such as Machine Translation </strong>is one of the prominent applications of sequence-to-sequence models is in machine translation, where they can translate text from one language to another. These models are also used in text summarization, generating concise and informative summaries of longer texts.</p><h4>Language Models</h4><p>Language models play a pivotal role in understanding and generating human-like text. They form the backbone of various natural language processing (NLP) applications, and this by estimating the likelihood of a sequence of words occurring in a given context. It assigns probabilities to different word combinations.</p><p><strong>Little Overview of Pre-trained Language Models<br></strong>Models sych as GPT (Generative Pre-trained Transformer), BERT (Bidirectional Encoder Representations from Transformers), etc… are pre-trained on massive amounts of data and can be fine-tuned for specific NLP tasks, showcasing remarkable language understanding capabilities.</p><ul><li>GPT, is a language model that belongs to the transformer architecture family. Developed by OpenAI, GPT is trained on a vast corpus of diverse text data, enabling it to generate coherent and contextually relevant human-like text. What sets GPT apart is its autoregressive nature, predicting the next word in a sequence based on the preceding context. This approach results in fluid and coherent text generation, making GPT a powerhouse in tasks such as language understanding, completion, and creative text generation.</li><li>BERT stands as a breakthrough in NLP by leveraging bidirectional context understanding. Unlike traditional models that process text in a unidirectional manner, BERT considers both the left and right context, enhancing its grasp of word semantics. Developed by Google, it excels in tasks requiring a deep understanding of language nuances, including sentiment analysis, question answering, and language translation. Its pre-training on massive datasets equips BERT to offer unparalleled performance in a wide array of language-related tasks.</li></ul><h4>Resources and Tools</h4><p>There are many librairies you can use for your NLP project.</p><p><strong>NLTK (Natural Language Toolkit)</strong>: A comprehensive library for working with human language data, providing easy-to-use functions for tasks such as tokenization, stemming, tagging, parsing, and more.</p><p><strong>spaCy</strong>: An open-source library for advanced natural language processing in Python. It is designed specifically for production use, focusing on efficiency and ease of use.</p><p><strong>Hugging Face Transformers</strong>: A popular platform offering a wide array of pre-trained transformer models for various NLP tasks. It simplifies the integration of state-of-the-art models into your projects.</p><p>You know the fundamental concepts, you know the libraries you could use, let&#39;s dive into datasets. Accessing relevant datasets is crucial for NLP research. Commonly used ones include:</p><ul><li>IMDb Reviews: For sentiment analysis.</li><li>CoNLL-2003: Named Entity Recognition (NER) dataset.</li><li>Kaggle datasets</li></ul><p>You know the what and the how, now where?</p><p>You can work in platforms like Google Colab, Kaggle, and AI Platform that provide cloud-based environments with GPUs, facilitating the training and experimentation with NLP models without the need for high-end hardware.</p><h4>Challenges</h4><ol><li><strong>Ambiguity:</strong> Dealing with words having multiple meanings in different contexts poses a significant challenge.</li><li><strong>Lack of Context Understanding:</strong> Extracting nuanced meanings from text requires a deeper understanding of context, which current models struggle with.</li><li><strong>Multilingual Understanding:</strong> Achieving accurate language understanding across diverse languages remains an ongoing challenge.</li><li><strong>Handling Slang and Informality:</strong> Capturing the subtleties of informal language and slang used in online communication is challenging.</li></ol><h4>Future Directions in NLP</h4><ol><li><strong>Explainability and Interpretability:</strong> Enhancing the transparency of NLP models to understand how they reach specific conclusions.</li><li><strong>Zero-Shot Learning:</strong> Developing models capable of performing tasks without explicit training, adapting to novel challenges.</li><li><strong>Multimodal NLP:</strong> Integrating information from multiple modalities, such as text and images, for a more holistic understanding.</li><li><strong>Continual Learning:</strong> Enabling models to adapt and learn continuously from new data without forgetting previous knowledge.</li></ol><p>Navigating these challenges and embracing future directions will drive the evolution of NLP, paving the way for more advanced and versatile natural language processing systems.</p><h4>Practical Examples and Tutorials:</h4><ul><li>Walkthroughs of NLP projects and step-by-step tutorials for implementing NLP tasks.</li></ul><p>This is what the next NLP article will be about, because obviously, there is some details we didn’t cover in this article that need more in-depth insights and real dataset examples. I hope you enjoyed this read!</p><p>See you there!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0933a2dbaa7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reading Challenge 2024: How to Set and Achieve Your Reading Goal]]></title>
            <link>https://medium.com/@nouhailadraidar1/reading-challenge-2024-how-to-set-and-achieve-your-reading-goal-b5a994084ea1?source=rss-95593e513145------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5a994084ea1</guid>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[goals]]></category>
            <category><![CDATA[reading-challenge]]></category>
            <category><![CDATA[reading]]></category>
            <category><![CDATA[books]]></category>
            <dc:creator><![CDATA[NOUHAILA DRAIDAR]]></dc:creator>
            <pubDate>Sun, 05 Nov 2023 10:20:27 GMT</pubDate>
            <atom:updated>2023-11-05T10:20:27.080Z</atom:updated>
            <content:encoded><![CDATA[<h4>Your Guide to Conquer the TBR Pile</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ivzupUh3t19XYVBRK2_4Gg.jpeg" /><figcaption>Captured by me for my <a href="https://www.instagram.com/noureads_/">Instagram</a>, 2020.</figcaption></figure><p>I’ve been an avid reader for as long as I can remember, but it wasn’t until a few years ago that I started setting specific reading goals. My typical reading goal is to read 60 books per year, although in 2021, I not only met but exceeded that goal, reading a total of 80 books.</p><p>Today, I’ll share how you can set your own reading goals and, more importantly, how to successfully achieve them.</p><h4>1. Set realistic goals</h4><p>Your reading journey is unique, and your reading goals should reflect that. It’s better to set a goal that you can comfortably achieve, rather than feeling rushed to finish. The point is not to be pressured into reading a specific number of books each year just because someone else does. Your reading goal should be driven by motivation, not stress.</p><p><strong><em>How?</em></strong></p><p>Start by choosing goals that align with your reading pace and personal preferences. For example, if you typically read romance novels but this year, you’re eager to explore philosophical works, keep in mind that these genres may require more time for thoughtful reading, so it would be wiser to set a more attainable goal rather than fixating on a specific number.</p><h4>2. Do it every day</h4><p>Reading is more than just a pastime; it’s a habit. To truly immerse yourself in the world of books, you need to make reading a part of your daily routine. Why is this important? Well, for one, it takes time to form a habit. It might feel a bit forced at first, but that’s perfectly okay, the key is consistency.</p><p>Imagine waking up and looking forward to those precious moments spent with a good book. Whether it’s early in the morning, during your lunch break, or just before bed, dedicating time every day can transform reading into an effortless habit, and the number of pages you read will naturally follow.</p><h4>3. Diverse Reading</h4><p>Try to read a variety of genres, authors, and formats. Dive into fiction, get lost in non-fiction, explore the classics, or savor contemporary works. Short stories and graphic novels can be delightful too. This will open up new horizons offering you a fresh perspective and introducing you to a world of new ideas.</p><h4>4. Reading Journal</h4><p>Consider keeping a reading journal where you write down your thoughts, favorite quotes, and reflections on the books you read. This can enhance your reading experience and make it more interactive. It’s like having a conversation with the author of your book.</p><p>Although I used to enjoy manually doing this as a teenager, I’m planning to go digital with my reading journal in 2024 — making it even more interactive and frankly, less time-consuming (because God, those glitter colors and handmade stickers used to take me forever to make)</p><h4>5. Use Technology</h4><p>Don’t hesitate to embrace technology by making use of audiobooks and e-readers for added convenience. Audiobooks can make your daily commute or workout sessions more enjoyable, while e-readers let you carry an entire library in your pocket.</p><p>For example, I’m a fan of Kobo e-readers for their ease of use and versatility. They’ve become my personal library on the go.</p><h4>6. Always Have a Book with You</h4><p>Keep a book in your bag, so you can read whenever you have a spare moment, whether it’s during a coffee break or waiting in line. The e-reader we talked about in the previous point can be an excellent choice, ensuring you have a whole library at your fingertips, ready to dive into at any time. This way, you can make the most of every free minute and get more reading done.</p><h4>7. Stay Flexible</h4><p>Life has this way of throwing surprises at us. If you can’t finish a book or miss your weekly reading target, remember that it’s okay. Be flexible and adjust your goals as needed. The journey of reading is as much about enjoyment as it is about meeting specific targets.</p><h4>8. Reading Space</h4><p>Create a cozy and comfortable space for reading. Having a peaceful environment can encourage you to read more.</p><h4>9. Celebrate Achievements</h4><p>When you reach a reading milestone, celebrate it. Reward yourself with a special treat, mark your achievement in your reading journal, or share your success with fellow bookworms.</p><p><strong><em>In conclusion</em></strong>, setting and achieving reading goals can be an immensely rewarding journey when it suits your personal preferences and lifestyle. The key is to make it enjoyable and achievable, allowing you to savor the reading journey while pushing your boundaries.</p><p>And remember, <strong>the quality of your reading experience matters more than the quantity of books you read.</strong></p><p>Happy reading! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5a994084ea1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking the World of Books: How to Start Reading]]></title>
            <link>https://medium.com/@nouhailadraidar1/unlocking-the-world-of-books-how-to-start-reading-316174a570b5?source=rss-95593e513145------2</link>
            <guid isPermaLink="false">https://medium.com/p/316174a570b5</guid>
            <category><![CDATA[habits]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[reading]]></category>
            <category><![CDATA[read]]></category>
            <category><![CDATA[books]]></category>
            <dc:creator><![CDATA[NOUHAILA DRAIDAR]]></dc:creator>
            <pubDate>Tue, 31 Oct 2023 09:14:33 GMT</pubDate>
            <atom:updated>2023-10-31T15:24:28.448Z</atom:updated>
            <content:encoded><![CDATA[<h4>One Chapter at a time</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZqK7EDTR-sq4S3Ad43hWA.jpeg" /><figcaption>Captured by me for my <a href="https://www.instagram.com/noureads_/">Instagram</a>, 2021.</figcaption></figure><p>The way I see it, opening a book is like stepping into a portal to a world of magic and wonder. The power of words within its pages can transport you to distant lands, introduce you to fascinating characters, and unlock the doors to a treasure trove of knowledge, it offers me a refuge from the daily hustle, allowing me to lose myself in captivating stories and fascinating information, whether I’m seeking knowledge or simply looking for an escape.</p><p>I understand this world isn’t opened to everyone, and today, here, right now, I’m going to gift you the key to this portal.</p><p>Smile, today is your first day in your lifelong love affair with the written word.</p><h4>1. Make it a habit</h4><p>You need to know that reading is a habit before anything else. That is the secret to unlocking the full magic of books. And like any other habit, you need to do it regularly, and the magic term is <strong><em>consistently</em></strong>. Consistence is key in building any habit, and reading is no exception.</p><p>There, “<strong><em>Make it a habit</em></strong>” is basically my answer to the question in this article’s title, but the challenge lies in its apparent simplicity. How can you cultivate this habit?</p><h4>2. Set Your Intention</h4><p>Imagine starting a road trip without a destination in mind. While spontaneous adventures can be fun, a clear intention provides direction and purpose. Similarly, when you read with intent, each page becomes a step forward to your goal. It might be to gain knowledge, escape into other worlds, or simply savor the pleasure of a well-written story. There are no right or wrong answers, only personal preferences.</p><p>Once you’ve identified your reading goal, it’s like drawing a treasure map to your literary adventures. When you open a book, you’ll know precisely what you’re hunting for, making each read purposeful and fulfilling.</p><h4>3. Find the Right Genre</h4><p>You can begin your reading journey by delving into various genres. Each genre offers a unique adventure, a fresh perspective, and a range of emotions that will eventually lead you to your favorite.</p><p>It’s also perfectly acceptable to start with genres you already enjoy through movies for example. If you’ve always been drawn to romance, begin there, if science fiction fascinates you, make it your starting point ! It should feel like an exciting exploration, not a daunting task.</p><p>Remember, there are no rules, don’t force yourself to read a philosophical book you hate just because it’s a trend.</p><h4>4. Reduce your screen time</h4><p>A lot of people can’t read because they can’t focus longer than 1 minute on a written text. Does 1 minute remind you of something? Reels. Exactly. Our brain got so used to quick, dopamine-inducing content, that focusing on something with no such immediate effect feels impossible.</p><p>So, reduce scrolling, try practicing meditation and fixing a point on a wall. Thanks to my studies, work and hobbies, I am in front of a screen for nearly 18 hours of my day, which i know is not healthy at all, and I’m not planning on keeping on this rate for a long time, but for now, these methods help me retrieve my focus.</p><p>By the way, I used to spend hours scrolling daily, but with time and effort, I’ve managed to reduce it to just a few minutes a day or even none.</p><h4>5. Join a Reading Community</h4><p>Reading is more enjoyable when shared with others. Join a book club or an online reading community to discuss your favorite books with like-minded individuals. These communities offer motivation and valuable book recommendations to enrich your reading experience.</p><p>I used to have a thriving community of book lovers on Instagram where I was a bit of a book ‘influencer’. Unfortunately, I had to delete that account due to some technical issues, but I started a <a href="https://www.instagram.com/noureads_/"><strong>new one</strong></a> that you’re more than welcome to join.</p><h4>6. Audio Books (bonus)</h4><p>Although I&#39;m not a huge fan of listening to books, especially fictional ones, audiobooks are an excellent way to dive into the world of literature, especially if you have a busy schedule. They allow you to enjoy stories while on the move, whether you’re commuting, working out, or doing household chores (Also, a good start for people who find it difficult to focus for a long period of time)</p><p>So, consider giving them a try to make your reading journey more flexible and enjoyable.</p><p><strong><em>Finally.</em></strong></p><p>You reading this means you could at least focus for a few minutes to read this article; you&#39;re not starting from zero as you may think. I hope these tips provide you with a solid foundation to get going.</p><p>Remember, like any great adventure, it’s not about reaching the destination; it’s about enjoying every step along the way. Books have the power to transport you to places you’ve never been, introduce you to characters you’ve never met, and spark your imagination in ways you’ve never imagined. So, don’t wait for the perfect moment to read because it might never come. Instead, make every moment perfect for reading by incorporating it into your daily life, 5–10 minutes every day is a good start. After some time, it will stop being a task and start being a pleasure, a daily treat you gift to yourself.</p><p>Happy reading! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=316174a570b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating My Life with Python: Ultimate Guide]]></title>
            <link>https://python.plainenglish.io/automating-my-life-with-python-ultimate-guide-1c0e5ff4ef3a?source=rss-95593e513145------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c0e5ff4ef3a</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[organization]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[NOUHAILA DRAIDAR]]></dc:creator>
            <pubDate>Sun, 29 Oct 2023 15:08:13 GMT</pubDate>
            <atom:updated>2023-10-31T00:41:44.673Z</atom:updated>
            <content:encoded><![CDATA[<h4>Let Code Handle Your Daily Grind</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rJLHHchoCVoWAg7dKNu8Kg.jpeg" /></figure><p>Performing repetitive tasks daily is a disservice to your skills as a programmer. Python offers a solution!</p><p>If you know me, you know I’m passionate about organization, to-do lists, and planners. However, why do these everyday tasks when automation is at our fingertips? Here, I’ll share some of the scripts I useto automate my life.</p><ol><li>QR Code Generator</li><li>Downloaded Files Management</li><li>Text to audio converter</li><li>Audio to text converter</li><li>PDF Merger</li></ol><h3><strong>1. QR Code Generator</strong></h3><p>I need QR Codes very often, and instead of using web apps i use this:</p><pre>import qrcode<br><br>data = &quot;url or paragraph or whatever&quot;<br>filename = &quot;site.png&quot;<br>img = qrcode.make(data)<br>img.save(filename)</pre><h3><strong>2. Downloaded Files Management</strong></h3><p>We will use the <em>watchdog</em> library in Python, which is a helpful tool for monitoring file system events, such as changes to files or directories. It allows you to automate tasks that respond to events like file creation, modification, or deletion.</p><p>In our case, we want to automate the process of downloaded files management, store each file type in a specific folder. (Images in downloaded images, documents in downloaded documents etc...)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*gd_dvIPxrqee2h1l17wrzA.png" /></figure><h4>Code</h4><pre>from os import scandir, rename<br>from os.path import splitext, exists, join<br>from shutil import move<br>from time import sleep<br>import logging<br>from watchdog.observers import Observer<br>from watchdog.events import FileSystemEventHandler<br><br>source_dir = &quot;&quot;<br>dest_dir_music = &quot;&quot;<br>dest_dir_video = &quot;&quot;<br>dest_dir_image = &quot;&quot;<br>dest_dir_doc = &quot;&quot;<br><br>image_extensions = [&quot;.jpg&quot;, &quot;.jpeg&quot;, &quot;.jpe&quot;, &quot;.jif&quot;, &quot;.png&quot;, &quot;.svg&quot;,&quot;.ico&quot;]<br>video_extensions = [&quot;.webm&quot;, &quot;.mpg&quot;, &quot;.mp2&quot;,&quot;.mp4&quot;, &quot;.mp4v&quot;, &quot;.mov&quot;,]<br>audio_extensions = [&quot;.m4a&quot;, &quot;.flac&quot;, &quot;mp3&quot;,]<br>doc_extensions = [&quot;.doc&quot;, &quot;.docx&quot;,&quot;.pdf&quot;, &quot;.xls&quot;, &quot;.xlsx&quot;, &quot;.ppt&quot;, &quot;.pptx&quot;]<br><br>def unique_file(dest, name)<br>#to be sure that the file is unique<br><br>def move_file(dest, entry, name):<br>#move file<br><br>class MyFileMoverHandler(FileSystemEventHandler):<br>#the class that checks every file and send it to the specified directory<br><br>if __name__ == &quot;__main__&quot;:<br>    logging.basicConfig(level=logging.INFO,<br>                        format=&#39;%(asctime)s - %(message)s&#39;,<br>                        datefmt=&#39;%Y-%m-%d %H:%M:%S&#39;)<br>    path = source_dir<br>    event_handler = MyFileMoverHandler()<br>    observer = Observer()<br>    observer.schedule(event_handler, path, recursive=True)<br>    observer.start()<br>    try:<br>        while True:<br>            sleep(10)<br>    except KeyboardInterrupt:<br>        observer.stop()<br>    observer.join()</pre><p>Entire code here: <a href="https://github.com/Nouhailadr/Downloaded_Files_Manager">Nouhailadr/Downloaded_Files_Manager (github.com)</a></p><h3><strong>3. Text to Audio files converter</strong></h3><p>You don’t have time to read something you really want to know? Got you!</p><p>This is the code that changes your file to an audio (I personally use it to convert book files or documentations to audio so I can listen to it while doing something else)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*4xzydAy3_dlBPKDW1PIMuw.png" /></figure><h4>Code</h4><pre>import pyttsx3<br>import PyPDF2<br><br>pdfreader = PyPDF2.PdfReader(open(&#39;A Few Useful Things to Know about Machine Learning.pdf&#39;, &#39;rb&#39;))<br>text = &#39;&#39;<br><br>for page_num in range(len(pdfreader.pages)):<br>    page = pdfreader.pages[page_num]<br>    text += page.extract_text()<br><br>speaker = pyttsx3.init()<br>speaker.setProperty(&#39;rate&#39;, 150) <br>speaker.setProperty(&#39;volume&#39;, 1)  <br>voices = speaker.getProperty(&#39;voices&#39;)<br>speaker.setProperty(&#39;voice&#39;, voices[1].id)<br><br>speaker.save_to_file(text, &#39;story1.mp3&#39;)<br>speaker.runAndWait()<br><br>speaker.stop()</pre><h3>4. Audio to text converter</h3><p>I personally use this when I want to be fully focused on an explanation, but also not without taking notes. So, I listen to the explanation as this code will write down everything so that I can read it whenever I want.</p><pre>import speech_recognition as sr<br>import sounddevice as sd<br>import numpy as np<br>import scipy.io.wavfile as wav<br><br>FILENAME_FROM_MIC = &quot;RECORD.WAV&quot;<br>VOICE_TEXT_FILENAME = &quot;VOICE_TO_TEXT.txt&quot;<br><br>r = sr.Recognizer()<br><br>def recognize_from_file(filename):<br>    # open the file<br>    with sr.AudioFile(filename) as source:<br>        # listen for the data (load audio to memory)<br>        audio_data = r.record(source)<br>        # recognize (convert from speech to text)<br>        text = r.recognize_google(audio_data)<br>        return text<br><br>def recognize_from_microphone(file_to_write):<br>    SAMPLE_RATE=44100<br>    duration = 10<br>    audio_recording = sd.rec(duration * SAMPLE_RATE, samplerate=SAMPLE_RATE, channels=1, dtype=&#39;int32&#39;)<br>    print(&quot;Recording...&quot;)<br>    sd.wait()<br>    print(&quot;Playing Audio...&quot;)<br>    sd.play(audio_recording, SAMPLE_RATE)<br>    sd.wait()<br>    print(&quot;Play Audio Complete&quot;)<br>    wav.write(file_to_write, SAMPLE_RATE, audio_recording)<br><br>def save_text_to_file(text, filename):<br>    with open(filename, &#39;w&#39;) as f:<br>        f.write(text)<br><br>if __name__ == &quot;__main__&quot;:<br>    #print(recognize_from_file(test_filenmae))<br>    recognize_from_microphone(FILENAME_FROM_MIC)<br>    text_from_voice = recognize_from_file(FILENAME_FROM_MIC)<br>    save_text_to_file(text_from_voice, VOICE_TEXT_FILENAME)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*e0_7xU6y-22PkL6mbsCDmw.png" /></figure><h3>5. PDF Merger</h3><pre>from pypdf import PdfMerger<br><br>pdfs = [&#39;file1.pdf&#39;, &#39;file2.pdf&#39;, &#39;file3.pdf&#39;]<br>merger = PdfMerger()<br><br>for pdf in pdfs:<br>  merger.append(pdf)<br><br>merger.write(&quot;result_file.pdf&quot;)<br>merger.close()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*bABRNeSaCDelUeH2YrrPfg.png" /></figure><p>I hope you find this article informative and useful. See you in the next one!</p><h3>In Plain English</h3><p><em>Thank you for being a part of our community! Before you go:</em></p><ul><li><em>Be sure to </em><strong><em>clap</em></strong><em> and </em><strong><em>follow</em></strong><em> the writer! 👏</em></li><li><em>You can find even more content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><strong><em> 🚀</em></strong></li><li><em>Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. 🗞️</em></li><li><em>Follow us: </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a><strong><em>(X</em></strong>), <a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a>, <a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong><em>YouTube</em></strong></a>, <a href="https://discord.gg/in-plain-english-709094664682340443"><strong><em>Discord</em></strong></a><strong><em>.</em></strong></li><li><em>Check out our other platforms: </em><a href="https://stackademic.com/"><strong><em>Stackademic</em></strong></a>, <a href="https://cofeed.app/"><strong><em>CoFeed</em></strong></a>, <a href="https://venturemagazine.net/"><strong><em>Venture</em></strong></a>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c0e5ff4ef3a" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/automating-my-life-with-python-ultimate-guide-1c0e5ff4ef3a">Automating My Life with Python: Ultimate Guide</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BOOK #2: CRIME AND PUNISHMENT]]></title>
            <link>https://medium.com/@nouhailadraidar1/book-2-crime-and-punishment-d87cbd7b501b?source=rss-95593e513145------2</link>
            <guid isPermaLink="false">https://medium.com/p/d87cbd7b501b</guid>
            <category><![CDATA[dostoevsky]]></category>
            <category><![CDATA[crime-and-punishment]]></category>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[quotes]]></category>
            <category><![CDATA[books]]></category>
            <dc:creator><![CDATA[NOUHAILA DRAIDAR]]></dc:creator>
            <pubDate>Tue, 17 Oct 2023 19:26:24 GMT</pubDate>
            <atom:updated>2023-10-17T19:26:24.239Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*PqqEzcshjCyV02e1Pr_sbg.png" /></figure><h4>Fyodor Dostoevsky</h4><p>Wonderful. Wonderful is the only word that comes to my mind when I think of describing this literary masterpiece. Murder is not an unprecedented theme in literature, but what truly sets it apart is the author’s analysis and how he approached the subject. I believe this novel has reconciled me with Dostoevsky.</p><p>I’ve read several of his works, but I always felt that beyond a few insightful ideas, there wasn’t much else. No endearing style, no suspense, no ‘beauty’ in tragedy and depression, to the point where I even considered learning Russian to see if it was just the translation that didn’t resonate with me.</p><p>While I haven’t read Victor Hugo’s ‘The Miserables’ in its entirety, I couldn’t help but draw parallels between the two works while reading ‘Crime and Punishment.’ It came as no surprise to me when I learned a while ago that Victor Hugo was one of Dostoevsky’s favorite authors.</p><p>This isn’t the first Dostoevsky book I’ve read, but it’s the one that truly allowed me to appreciate the genius of this author, his style, through the story of Raskolnikov, his various emotions, ranging from oppression, fear, and disgust to affection and pity.</p><p>Raskolnikov is a former student who lives miserably in a dingy, wretched room. Isolated in his thoughts, he concocts a theory that divides society into two categories. The lower category consists of submissive individuals, while the upper category comprises ‘real’ men who have the gift of leading humanity towards a higher purpose, never content with a dull view that only perpetuates the world’s state. He doesn’t want to belong to the lower category, and as a result of his thoughts, he commits a murder.</p><p>Dostoevsky confronts us with the contradictions of morality through Raskolnikov’s story and analysis. He delves into Raskolnikov’s mind, teeming with ideas and thoughts that could drive even the wisest man to alienation. We follow him in his misery, his solitude, and, most importantly, his regrets, eaten away by his secret.</p><p>And suddenly, Sonia appears. This immense heart in a fragile body, perhaps a glimmer of hope? She illuminates the gloom of the novel.</p><p>In short, I cherished every moment of my reading and only realized how attached I had become to the characters after turning the last page.</p><p>I highly recommend it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*g2SMz_Ijsf1FLV1diXh_fQ.png" /><figcaption>Historic B&amp;W photos of St. Petersburg, Russia in the 19th Century</figcaption></figure><p>I’ve gathered 30 impactful quotes from the book. I hope you can connect with at least some of them.</p><ol><li>Pain and suffering are always inevitable for a large intelligence and a deep heart. The really great men must, I think, have great sadness on earth.</li><li>To go wrong in one’s own way is better than to go right in someone else’s</li><li>We sometimes encounter people, even perfect strangers, who begin to interest us at first sight, somehow suddenly, all at once, before a word has been spoken</li><li>It takes something more than intelligence to act intelligently</li><li>When reason fails, the devil helps!</li><li>I did not bow down to you; I bowed down to all the suffering of humanity</li><li>A hundred suspicions don’t make a proof</li><li>The man who has a conscience suffers whilst acknowledging his sin. That is his punishment.</li><li>We’re always thinking of eternity as an idea that cannot be understood, something immense. But why must it be? What if, instead of all this, you suddenly find just a little room there, something like a village bath-house, grimy, and spiders in every corner, and that’s all eternity is. Sometimes, you know, I can’t help feeling that that’s what it is.</li><li>And the more I drink the more I feel it. That’s why I drink too. I try to find sympathy and feeling in drink…. I drink so that I may suffer twice as much!</li><li>Power is given only to him who dares to stoop and take it … one must have the courage to dare</li><li>The fear of appearances is the first symptom of impotence.</li><li>“Do you understand, sir, do you understand what it means when you have absolutely nowhere to turn?” Marmeladov’s question came suddenly into his mind “for every man must have somewhere to turn…</li><li>Man has it all in his hands, and it all slips through his fingers from sheer cowardice.</li><li>Truly great men must, I think, experience great sorrow on the earth.</li><li>Break what must be broken, once for all, that’s all, and take the suffering on oneself.</li><li>People with new ideas, people with the faintest capacity for saying something new, are extremely few in number, extraordinarily so, in fact.</li><li>Don’t be overwise; fling yourself straight into life, without deliberation; don’t be afraid — the flood will bear you to the bank and set you safe on your feet again.</li><li>You see I kept asking myself then: why am I so stupid that if others are stupid — and I know they are — yet I won’t be wiser?</li><li>Existence alone had never been enough for him; he had always wanted more. Perhaps it was only from the force of his desires that he had regarded himself as a man to whom more was permitted than to others.</li><li>Where is it I’ve read that someone condemned to death says or thinks, an hour before his death, that if he had to live on some high rock, on such a narrow ledge that he’d only room to stand, and the ocean, everlasting darkness, everlasting solitude, everlasting tempest around him, if he had to remain standing on a square yard of space all his life, a thousand years, eternity, it was better to live so than to die at once. Only to live, to live and live! Life, whatever it may be!</li><li>the most offensive is not their lying — one can always forgive lying — lying is a delightful thing, for it leads to truth — what is offensive is that they lie and worship their own lying…</li><li>Reason is the slave of passion.</li><li>Suffering is part and parcel of extensive intelligence and a feeling heart.</li><li>The best way to keep a prisoner from escaping is to make sure he never knows he’s in prison</li><li>And what if I am a scoundrel, a wicked man, a depraved man, but to me it seems that my evil was just an accident and that I will always remain virtuous at heart, though I am also stupid.</li><li>Suffering is the sole origin of consciousness.</li><li>She said nothing, she only looked at me without a word. But it hurts more, it hurts more when they don’t blame!</li><li>I used to analyze myself down to the last thread, used to compare myself with others, recalled all the smallest glances, smiles and words of those to whom I’d tried to be frank, interpreted everything in a bad light, laughed viciously at my attempts ‘to be like the rest’ –and suddenly, in the midst of my laughing, I’d give way to sadness, fall into ludicrous despondency and once again start the whole process all over again — in short, I went round and round like a squirrel on a wheel.</li><li>It’s because I chatter that I do nothing. Or perhaps it is that I chatter because I do nothing.</li></ol><p>And, a little bonus:</p><p>31. Life is given to me only once, and never will be again — I don’t want to sit waiting for universal happiness. I want to live myself; otherwise, it’s better not to live at all.</p><p>If you enjoyed this collection, please don’t hesitate to suggest another book you think I should explore next. ✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d87cbd7b501b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>