<?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 Kourosh Alizadeh on Medium]]></title>
        <description><![CDATA[Stories by Kourosh Alizadeh on Medium]]></description>
        <link>https://medium.com/@kcalizadeh?source=rss-1580c27a64ba------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*A73uHrWd_XeKOKcv_vscBw.jpeg</url>
            <title>Stories by Kourosh Alizadeh on Medium</title>
            <link>https://medium.com/@kcalizadeh?source=rss-1580c27a64ba------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:03:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kcalizadeh/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[A-Ha! Oceans of Logic]]></title>
            <link>https://kcalizadeh.medium.com/a-ha-oceans-of-logic-59ee9202e65b?source=rss-1580c27a64ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/59ee9202e65b</guid>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[take-on-me]]></category>
            <category><![CDATA[logic]]></category>
            <category><![CDATA[thoughts]]></category>
            <dc:creator><![CDATA[Kourosh Alizadeh]]></dc:creator>
            <pubDate>Wed, 24 Aug 2022 00:27:04 GMT</pubDate>
            <atom:updated>2022-08-24T00:27:04.582Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7L7lrCNUwaNSW9--" /><figcaption>Photo by <a href="https://unsplash.com/@vimarethomas?utm_source=medium&amp;utm_medium=referral">Thomas Vimare</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Everyone knows ‘Take on Me.’ If you don’t know it, Google it. If you do know it, Google it anyway, that song is great. Or actually, don’t worry about it, we got the video right here: <a href="https://www.youtube.com/watch?v=djV11Xbc914">https://www.youtube.com/watch?v=djV11Xbc914</a></p><p>For me, the song always brings back memories of Sunday morning breakfasts at my aunt’s house in California, sitting on the porch and chatting about life, the universe, and everything. But this is supposed to be a philosophy article, so I won’t go too deep into my reminisces.</p><p>Although we could spend a lot of time analyzing the cryptic grammar of the song’s title, the most philosophically interesting part for my purposes is a single line at the end of the last verse: “it’s no better to be safe than sorry.” Here Morten Harket just flies in the face of conventional wisdom and boldly proclaims that it’s actually NOT better to be safe than sorry. Usually when people say controversial things like this, they provide a little bit of reasoning. But Harket is above such petty things as reason, so he just drops this bomb and goes straight to the chorus, leaving us to figure out what exactly he might mean.</p><p>Luckily, you have me to help you sort it out.</p><p>First, let’s lay out the different perspectives on safe vs sorry. You could, as the saying goes, think it’s better to be safe than sorry. That is, you could spend energy taking precautions so you won’t end up suffering later when some unlucky thing happens. Alternatively, you could do the direct opposite and claim that it’s better to be sorry than safe. In other words, it’s better to take risks and live hard than to spend all your time trying to figure out the safe path. Though this latter viewpoint may not be enshrined in an idiom (unless you count YOLO), it’s a common idea and you’ll find it in all types of books and movies. Just think of any story where the main character plays it too safe and has to learn that nothing good in life comes without some risk.</p><p>But Harket’s claim in Take on Me is interesting because it actually doesn’t fall into either of these two camps. One could read it as just a denial that safe is better than sorry. But the more interesting way to understand it is as a claim that neither is better than the other. Safe is no better than sorry, but sorry is no better than safe. But how could that work?</p><p>Well, if you actually sit and think about it, playing it safe in life actually involves taking significant risk. And at the same time, people who put themselves out there and take real risks are playing it safe in their own way. So it turns out that safe IS sorry and sorry IS safe. Or, to leave the idiom behind, taking risks is a safe bet, and playing it safe is risky.</p><p>Let’s take a look at why this is the case. First off, people who play it safe end up closing themselves off to a huge number of opportunities, especially emotionally-intense opportunities. This, after all, is the moral of all those movies where the stick-in-the-mud protagonist learns to live life to the fullest. Staying safe, then, is taking a risk; it’s betting that all those missed opportunities are actually not worthwhile at all. Falling in love, traveling to strange places, quitting your job to chase your dreams, none of it really pays off — that’s what you’re saying when you choose the safe path, and in doing so you risk missing out on all the ways in which life really can pay off.</p><p>At the same time, people who are avid risk takers, who go all-in on all their relationships, who quit their jobs to travel the world, who try hard to live life to the fullest… well actually they’re just playing it safe. You’ll even hear these people say stuff like “I just don’t want to have any regrets.” In other words, they’re doing all this to minimize the risk of having to look back on a life unlived, on chances not taken. By chasing their unlikely ambitions and throwing their hearts around they make sure that they’ll be safe from having to worry that they didn’t give it their all.</p><p>The bottom line of all this is that there isn’t any real difference between playing it safe or playing it sorry. Both lifestyles involve risk, and both lifestyles involve safety. You’ll always be safe in one way or another, whether it’s safe from the hollowness of a controlled lifestyle or safe from heartbreak and bankruptcy. And on a more depressing note, it turns out there’s really no way to avoid being sorry. You’ll either regret not having kept a steady job and stable lifestyle or you’ll regret not seeing the world and chasing the ones you loved. Regret and security are omnipresent in life, but it’s up to you to choose what you’ll regret and what you’ll feel safe about. That’s the real message of Take on Me, that’s what Harket is talking about when he says he’s “slowly learning that life is ok.”</p><p>Having said all this about A-ha’s classic song, I want to take a moment to zoom out and comment on the mode of reasoning we employed here. Unlike most traditional argumentation, we didn’t present a pair of opposed ideas, argue why one side must be wrong, and then conclude that the other is the truth. Instead, we took our opposed ideas and saw how in fact each of them blurs with the other, so that there isn’t any real distinction between them after all.</p><p>This style of reasoning has a logic all its own: oceanic logic. Oceanic logic, first described as a logic in its own right by Ermanno Bencivenga, is a pattern of reasoning that seeks to undermine oppositions. In so doing, it reveals that both sides of an opposed pair exist along a gradient and cannot be strictly separated. Like waves in the ocean, both sides of the debate are actually just manifestations of the same core phenomena, and it’s impossible to really tell where one ends and the other begins.</p><p>I could go on about this kind of logic, it’s historical exemplars, and it’s comparison to other forms for ages but we’re already running a little long. So for now, I’ll just note that since oceanic logic aims at seeing underlying unity between apparently opposed opinions, it’s a form of logic uniquely suited to helping opposing parties see each other’s perspectives and reconcile. So next time you find yourself in an argument, you could try to ask yourself — is it possible that the different things we want are actually one and the same?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59ee9202e65b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ravagan & the Princess]]></title>
            <link>https://kcalizadeh.medium.com/ravagan-the-princess-535aaa1fc0f9?source=rss-1580c27a64ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/535aaa1fc0f9</guid>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[fairy-tale]]></category>
            <category><![CDATA[fantasy]]></category>
            <category><![CDATA[bedtime-stories]]></category>
            <category><![CDATA[fiction]]></category>
            <dc:creator><![CDATA[Kourosh Alizadeh]]></dc:creator>
            <pubDate>Sat, 26 Mar 2022 17:35:42 GMT</pubDate>
            <atom:updated>2022-04-03T13:17:14.634Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4RS2L35c2yI7e8ZXdkvT3g.jpeg" /></figure><p>Once upon a time there was a princess named Adarine. Adarine was as clever as a fox, as funny as a kookaburra, and as lovely as the sun. She liked nothing more than to spend her days studying in her bed, her brown hair falling in curls around her bronze shoulders as she leaned over some arcane tome. And when she wanted a break from her studies, she would go to her workshop in the castle and invent new devices to improve the lives of her people.</p><p>Her father, the king, however, desperately wanted her to marry. Princes from every land came through the castle to seek her hand, and though she indulged her father by meeting with them, in the end she always turned them down. Princes and marriage, it seemed, could not interest her in the way her studies did, and the king loved and respected his daughter too much to force her into a marriage she did not want.</p><p>And so it went until one day, a new prince named Ragavan visited their castle. As Adarine was getting ready for the usual royal dinner with her suitor, her maidservants told her how he seemed to be not as fancy or as rich as the other princes. Apparently, Adarine thought to herself, her father was scraping the bottom of the barrel, and hopefully soon she’d run out of princes to reject and could focus entirely on her true passions.</p><p>Soon after, everyone was sitting in the great hall around a great table piled high with every delicious food you can imagine (and many more you cannot). When Adarine saw Ragavan, she noticed that his clothes were clean but not as rich or decorated as those of the other princes. He spoke with intelligence and courtesy, but with a bit more humility than might be right for a prince. All this Adarine noticed, but not much else, as Ragavan was not a person who commanded attention, and she had her studies on her mind.</p><p>At the end of the dinner, Ragavan and his party stood up to leave the castle. As he was finishing his goodbyes, the king called out, “Prince Ragavan, you have come seeking the hand of my daughter, haven’t you? Surely you have some gift you can give her as a token of your affection?”</p><p>Ragavan looked embarrassed — it was obvious that he hadn’t thought this far. But after a moment’s thought, he reached into his jacket pocket and pulled out a small figure of a horse carved of ebony wood. He went to the princess and held it out to her, saying, “Princess, please accept this small figurine. It has been mine since I was a boy, and I cherish it deeply. So too would I cherish you were you to consent to be my wife.”</p><p>Adarine was not impressed. Other princes had given her jewels and elephants and all manner of delicacies, and here this prince was giving her a child’s toy. But she accepted the gift graciously and thanked Ragavan for his visit.</p><p>When she got back to her room, the princess put the toy on her dresser and began preparing for bed. As soon as she turned her back on the dresser, however, she heard a ‘whoosh’ and quickly turned back. There in front of her was a real, living black horse. The princess was frightened at first, but the horse’s gentle eyes calmed her, and indeed it seemed to be asking her to get on its back.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tgv52TOjN0vCScWiwlA7NQ.jpeg" /></figure><p>So she mounted the horse, and as soon as she had gotten comfortable on its back, the horse started trotting toward the balcony. And then just as there was about to be no more balcony to walk on, it leaped into the air! For this was no normal horse, but a <em>flying</em> horse. After Adarine got over her initial fear, all night long she and the horse flew above her homeland, seeing all the world from a new vantage.</p><p>Eventually they landed back on her balcony and the princess went to bed. In her dreams she saw magic horses and all kinds of other wonders, but when she woke, the horse was gone and in its place was the same ebony figurine that Ragavan had given her the night before.</p><p>That day, dinner could not come soon enough. Adarine knew she had to ask Ragavan about the horse and figure out what had happened the night before. But when everyone had finally sat down to the table, it seemed like she could not get a word in edgewise. When she at last was able to ask the prince about the horse, he only smiled and said he was glad she liked the gift, as if toys turning into flying horses was the most normal thing in the world.</p><p>That night, as Ragavan was taking his leave of the king’s hospitality, the king had to remind him again to give a gift to his prospective bride. Again Ragavan seemed embarrassed. But he picked up from the table the cup he had been drinking from at dinner and offered it to the princess, saying, “I brought this from my father’s lands to your table, and it has served me well throughout the journey. So too would I serve you, if you were to be my wife.”</p><p>The king’s disappointment was clear. With gifts like this, there was no way Adarine would accept Ragavan as her husband. Adarine, too, seemed a bit surprised to be offered a plain old cup as a gift. But as before, she had the grace to accept the gift without disdain.</p><p>When she got back to her room, Adarine put the cup next to the horse on her dresser. As she was getting ready for bed, she called her maid to her room, since she wanted to have some water to drink before going to sleep. The maid came, but when Adarine asked for some water, the maid paused for a moment. “But princess,” she said timidly, “there is a glass of water on your dresser there already.”</p><p>Adarine looked at her dresser. Sure enough, the cup that Ragavan had given her, which had to have been empty before, was now filled with water. Surprised, she thanked the maid and sent her on her way. Then she drank the water from the cup and found it to be the most refreshing and pure water that she had ever had.</p><p>After she drained the cup, she was still thirsty, but no sooner had she opened her mouth to call the maid than the cup was full again. Obviously this was no normal cup! She spent many hours examining it and although it would always fill up, — usually with water but once, when she was getting hungry, with delicious foods — she could not for the life of her figure out how it worked.</p><p>The next day was the last day of the customary three days of courtship. But the princess could not wait for dinner. She told her father to call Ragavan in for lunch instead. The king looked crestfallen. Clearly, he thought, the princess just wanted to get this whole thing over with.</p><p>Ragavan and his party came to the castle for a delicious lunch in the royal gardens. But try as the princess might, she could not get Ragavan to explain the secret of the ever-filling cup. Like the night before, he just smiled and said he was glad that she enjoyed his present. Adarine was growing increasingly frustrated. She had to know how these wonders worked, and, she admitted to herself, she had to know more about the man to whom these things seemed so commonplace.</p><p>Aside from the frustration about the cup, the lunch passed pleasantly. Ragavan seemed genuinely interested in the people of Adarine’s kingdom, and she found herself enjoying his kind and humble manner. As lunch was ending, Ragavan stood up to take his leave of the party. This time, however, he seemed to have remembered to bring a gift. One of his attendants came and handed him a black box about the size of a man’s fist.</p><p>“Princess,” he said, holding the box out to her, “I know we have spoken but briefly in these three days, and decisions about marriage should not be made lightly. I ask that you take this gift and consider our future for yourself this evening. For my part, in our time together I have seen that you are wise, kind, and passionate. Nothing would make me happier than to stand by your side as your husband. I can only hope that you feel the same.”</p><p>With that, he handed her the box and left the castle.</p><p>For the rest of the day and long into the night, Adarine puzzled over the box. It had no hinges that she could see, yet when she shook it she could tell that it was hollow and there was something inside. She tried poking and prodding at it, tried prying it open, and even tried all the magic words she could think of, but could not open it. At last she went to sleep, exhausted. All the other gifts had been wonderful and magical. How could Ragavan’s last gift be just a box that wouldn’t open?</p><p>The next morning, Adarine called Ragavan to the castle. He appeared with a smile on his face. But Adarine was not smiling just yet. She wanted answers.</p><p>“Ragavan,” she said, “it is not right that a man keep secrets from his wife. If I am to marry you, you must first prove that I can trust you. Explain to me the secrets of the horse and the cup, so that I can know that you are not some dark wizard or other charlatan.”</p><p>“Princess,” Ragavan replied, “your words ring true, and I will answer to your request. The ebony horse is, as I said, a toy from my childhood. It only reveals its living form to those who are open to seeing the world from a fresh point of view; to all others it is merely a toy. That it showed itself to you proves that you are a wise woman, capable of seeing many perspectives.”</p><p>“The cup is the cup of desires, and it fills with whatever its owner wishes. Had you been cruel, it would have filled with fire, and had you been greedy it would have filled with gold. That in your hands it filled with water and good foods proves that you are pure of heart.”</p><p>Adarine considered these answers. It all made sense, but there was still something missing…</p><p>“What of the box?” she asked, holding it out in front of her. “All night I tried to open it, with no result. Will you open it for me?”</p><p>Ragavan smiled and stepped closer. He put his palm on top of the box in Adarine’s outstretched hand, his fingers barely touching her wrist.</p><p>“This box is the box of my heart,” he said, “and like all hearts it cannot be opened by force or magic. A heart can only be opened by its owner. As you ask, so I open it for you.”</p><p>With that, he lifted his hand and the box popped open. Adarine looked inside and sure enough there was a glowing red heart there, pulsing quickly as if its owner was nervously anticipating an answer.</p><p>“Now that I have laid bare my secrets and given you my heart,” Ragavan said, the princess still looking down in wonder at the box. “Adarine, will you marry me?”</p><p>Adarine felt the heart in her chest pounding to match the one in her hands. She knew her answer.</p><p>“Yes,” she whispered.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=535aaa1fc0f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Two Swords]]></title>
            <link>https://kcalizadeh.medium.com/two-swords-26bbb8a3a866?source=rss-1580c27a64ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/26bbb8a3a866</guid>
            <category><![CDATA[fiction]]></category>
            <category><![CDATA[prose-poem]]></category>
            <category><![CDATA[flash-fiction]]></category>
            <category><![CDATA[horror]]></category>
            <category><![CDATA[mystery]]></category>
            <dc:creator><![CDATA[Kourosh Alizadeh]]></dc:creator>
            <pubDate>Sun, 05 Dec 2021 22:53:36 GMT</pubDate>
            <atom:updated>2021-12-05T22:54:30.395Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HIqInIrrqvYjkM6g46jnJw.jpeg" /><figcaption>image by the author</figcaption></figure><p>Don’t big the sky reaches for miles up and legwise into the rest of it all. Don’t rest some cows hide in the forest wait for the wolf and them all. Don’t clean small like the wave on the shore where we first laid eyes on it all. So.</p><p>When you wake up the swords lie near you. You hear the ringing of the bell but you know it’s only your memory, only the past. The sheets are damp with your sweat, you pull them off and sit on your bed. There are the swords, there beneath you. Reach out and grab them. You do. Hold two. In your hands.</p><p>One is ivory, the other red as rubies. They feel comfortable, like you’ve held them before. Peace comes on the edge of a sword, or so I’m told. Doesn’t sound right, sounds like something you’d tell yourself at night. When the sword’s shadow looms.</p><p>Regardless you stand, lay the swords on the bed, wash your face brush your teeth. It’s hard to remember yesterday, harder still the time before that. But you know today, your body remembers its way. When you come out you are ready. Throw the shirt on, the pants on, sheath your swords after you put your belt on. Let’s go.</p><p>Darling remember the long corridors of your apartment building. How the green carpet is so cheaply made, how the walls are just clean enough but still stained. You remember. There is no one to see on the way to the elevator. You go down. There is no one to see as you walk out to the street. But a cat does show up in the lobby. White. It looks at you. You smile. It smiles. This is a good sign.</p><p>Outside the clouds are grey and the sun is hidden, a distant father wrapped up in his own regret. The sycamores are spaced out on the sidewalk and the street is right there. You know the way to go and you go it. You don’t know where it leads but you lead us. Soon we’ll be there, and the small snake of time will whisper you this, the last secret you’ll ever earn.</p><p>Yes darling, look around. Breathe deep the air, feel it flow in your hair. You are strong and whole. You’re going to make others strong and whole. Feel the swords at your sides. Breathe deep. Feel your shoulders relax, feel the fibers of your back, yes even your fingers are ready.</p><p>You’re at the building and it’s tall and silver. Go in. See the man at the desk look at you. He is old and fat. You smile. He smiles. You’re in the elevator. You’re on the 12th floor. You’re at a big door. It’s black. You’re opening it.</p><p>Inside there’s a man on the phone at a desk who looks up. He smiles. “Hi Charlie,” he says, “what are you doing here?”</p><p>Say whatever you want, what does it matter? Take out the swords.</p><p>“What are you doing?” the man seems to say. Who knows? He stands up. Take the swords and put them through him.</p><p>Good work. You did it. Watch him die on the floor. His blood pools around him. He looks at you, repeating his last word over and over: “why?” until his voice stops coming but his mouth keeps moving: “why?”</p><p>We’re past whys now. I’m done with you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26bbb8a3a866" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Susanna is Conflicted]]></title>
            <link>https://kcalizadeh.medium.com/susanna-is-conflicted-45e391c03efa?source=rss-1580c27a64ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/45e391c03efa</guid>
            <category><![CDATA[horror]]></category>
            <category><![CDATA[flash-fiction]]></category>
            <category><![CDATA[horror-fiction]]></category>
            <dc:creator><![CDATA[Kourosh Alizadeh]]></dc:creator>
            <pubDate>Sun, 16 May 2021 13:47:31 GMT</pubDate>
            <atom:updated>2021-05-16T13:47:31.239Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*TfSts8Wc3-PTi7Hv" /></figure><p>‘Susanna,’ thought Susanna, ‘is a small worm compared to me.’</p><p>‘So,’ thought Susanna, ‘you think you are something? You think you can insult me willy-nilly, and that I will do nothing?’</p><p>‘Oh,’ thought Susanna, ‘I wish you would do something, so that I’d have the chance to crush you into the nothing you are.’</p><p>And so Susanna was, in a word, conflicted. Over what? The sky had been blue all day, the stream had been bubbling playfully, and her stomach was pleasantly full of chocolates. There was, in a phrase, nothing wrong.</p><p>But sometimes it’s just this kind of carefreeness that causes people to struggle. And so it was today: Susanna sat on the small wooden bridge in our garden, her legs dangling out over the water as she muttered cruel slanders to herself.</p><p>Now, on a sunny day like that one, dark thoughts show up quite clearly, and so when I looked out the kitchen window into the garden I could see that something was wrong by the sort of shadowy halo that had formed around her. So I sent Toby, our youngest, to see what was the matter. He was only seven years old, not much younger than Susanna, and they had always gotten along.</p><p>I watched from the window as he walked carefully up to her and stood a moment by her on the bridge. She didn’t seem to notice. He tapped her on the shoulder. Still she did nothing. He tapped her again.</p><p>This time it must have done the trick because Susanna snapped, lashing her head around and glaring at him so fiercely that he ran straight back to me in the kitchen and hugged me close for comfort.</p><p>I calmed Toby down; the brave boy barely held back his tears. Oh those dark thoughts must have gotten a real hold of her! Something would have to be done. I knew Susanna was only indulging a whim, passing the time with evil, so to speak, but it had gone far enough. And anyway, it’s an ugly habit — we all know that an appetite, once indulged, only grows.</p><p>So I went out there myself to put an end to all this. Striding out into the garden, I had the distinct sense that there was a real black spot on that bridge. The garden is more of a field really, surrounded by a sort of horseshoe of trees which form the edge of the forest beyond. The little stream we have runs out of the woods and into a little gulley by the side of the house. On spring days the field fills with flowers and is really quite beautiful. Today was such a day, but something was sucking the joy out of everything, and that something was Susanna’s foul temper.</p><p>I went up to the bridge and stood a few feet away, looking straight at her. Her twisting face made cruel shapes as she whispered words to herself, her body tense and her eyes fixed on nothing.</p><p>“Susanna,” I said firmly, “you had better stop this nonsense right now and come apologize to your brother.”</p><p>She seemed to laugh a bit, and, holding the rest of her body perfectly still, she turned her head to look at me. Once I saw her eyes, I knew what had happened. Her mouth opened, and I saw her teeth were sharp, her tongue long and black as it flopped out of her jaws.</p><p>Then all at once, she was on her feet and running toward me. In a snap I shot my knee out and caught her square on the head as she rushed for me, breaking her nose. She wailed and stepped back, her hands on her nose and blood dripping through them. Then she gave me one last vicious glare, as if to say she would not forget the insult, and ran off into the woods.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45e391c03efa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Word Vectors and Word Meaning]]></title>
            <link>https://medium.com/data-science/word-vectors-and-word-meaning-90493d13af76?source=rss-1580c27a64ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/90493d13af76</guid>
            <category><![CDATA[word-embeddings]]></category>
            <category><![CDATA[word-vectors]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[meaning]]></category>
            <category><![CDATA[theory]]></category>
            <dc:creator><![CDATA[Kourosh Alizadeh]]></dc:creator>
            <pubDate>Sat, 17 Apr 2021 05:00:49 GMT</pubDate>
            <atom:updated>2022-12-03T17:24:41.015Z</atom:updated>
            <content:encoded><![CDATA[<h3>Word Vectors and Word Meanings</h3><h4>Do word vectors capture meaning? It depends what ‘meaning’ means.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZzrxJGGoJaxPm1t8" /><figcaption>What does meaning even mean, you know? Photo by <a href="https://unsplash.com/@ross_savchyn?utm_source=medium&amp;utm_medium=referral">Rostyslav Savchyn</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This article aims to answer a simple question: do word vectors actually capture the meaning of words?</p><p>The answer is… it depends. In particular, it depends on what you think a meaning is. But I’m getting ahead of myself. First, let’s quickly break down what word vectors are. Then we can talk about the theory of meaning that suits them best.</p><h3>WHAT IS A WORD VECTOR?</h3><p>A word vector is an attempt to mathematically represent the meaning of a word. In essence, a computer goes through some text (ideally a lot of text) and calculates how often words show up next to each other. These frequencies are represented with numbers. So if the word ‘good’ always shows up next to the word ‘friend’ then part of the word vector for ‘good’ will reflect that connection. A given word will have a vast number of such values, usually in the hundreds and sometimes in the thousands.</p><p>Once you have this set of numbers for a word, you can compare the vectors of different words. For example, you could compare the different vectors for the words ‘banana,’ ‘kiwi,’ and ‘raincloud.’ Since the vectors are mathematical objects, you can calculate the numerical similarity of different vectors. And since ‘banana’ and ‘kiwi’ are used in a lot of similar contexts, and are not used in the contexts where ‘raincloud’ shows up, their vectors will be closer to each other and farther from the vector for ‘raincloud.’</p><p>From here, one can make an intuitive leap and say that the vector represents the <em>meaning </em>of the word ‘banana.’ After all, the vector can produce analogies (e.g. it can tell you that a banana is to a kiwi as a potato is to a carrot), it can categorize the banana into the right category (e.g. tell you that banana is closer to fruit than to meat or to vegetable), and it can even be used to flag correct and incorrect uses of ‘banana’ in sentences.</p><p>But can a set of numbers really be all there is to the meaning of a word? In other words…</p><h3>IS A WORD VECTOR A MEANING?</h3><p>At the level of the actual code used to generate word vectors, what we have been calling a word is simply a string — a series of characters with no particular representational content except to us as humans. The goal of word vectors is to model the representational content we humans have assigned to that string so that it can become a word not just for us but <em>for the computer too. </em>In other words, we are trying to teach the computer what the word ‘banana’ means.</p><p>Now, there are any number of different theories of meaning. Here, I want to focus on a specific one that can be used to support the idea that word vectors do in fact represent meanings. This is a view advanced by the philosopher Ludwig Wittgenstein. In his book <em>Philosophical Investigations, </em>Wittgenstein proposes that we should understand the meaning of a word as being nothing more than how that word is used. We can call this the ‘meaning-is-use thesis.’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/0*4E-O_VRdpVrh5bm3.jpg" /><figcaption>The face of a man with his own theory of meaning. Taken from <a href="https://commons.wikimedia.org/wiki/File:43._Ludwig_Wittgenstein_on_holiday.jpg">Wikimedia Commons</a>.</figcaption></figure><p>This might sound kind of strange, or else just blatantly obvious, so let’s take a moment to compare it to other ideas so we can see why Wittgenstein’s conception was a bit of a breakthrough. Before you read this, if someone asked you what the meaning of a word was, what would you say? Maybe you’d say it’s whatever is in the dictionary. Or maybe you’d say it’s what the word stands for. What does ‘banana’ mean? It means that literal physical object — the banana.</p><p>These perspectives have some serious issues. After all, the dictionary doesn’t create meaning, it just writes down what words meant already; people were meaning stuff with their words long before the first dictionary. And if the word’s meaning is the thing it stands for, then how does some random set of sounds come to stand for anything at all? Why does ‘banana’ mean the physical banana, while ‘cake’ means a cake? There’s nothing special about the sounds that should make them point one way or the other.</p><p>Wittgenstein’s idea of meaning as use dodges both of these problems. Meaning isn’t some ethereal link between a sound and an object, nor is it some grand plan handed down by Webster’s dictionary; it’s just a matter of social convention and everyday use. If you ask me for a coffee by saying ‘bingle bangle bongle,’ and then I get you a coffee, well, then ‘bingle bangle bongle’ means ‘please get me a coffee.’ That’s all there is to it.</p><h3>MEANING-IS-USE AND WORD VECTORS</h3><p>Perhaps you’ve got some inkling now as to why this theory of meaning is more friendly to word vectors than the others. If meaning was about some magic connection between sounds and objects, then the word vector would have no hope of ever capturing it. No matter how many texts you scan, you’ll never find that link.</p><p>Word vectors can, however, tell you exactly how a word is used. In fact, if a computer had read all the text and heard all the words that you’ve heard in your life, it would probably have a much more precise and clear representation of how those words were used than you do. If all there is to the meaning of a word is how it is used in a sentence, and word vectors can capture that, then word vectors do in fact capture the meaning of words.</p><p>Of course, Wittgenstein’s theory has its own issues. In particular, notice that on his view, words are just tools for navigating our socially-conditioned world. This means that they don’t necessarily represent anything outside themselves, which may seem counter-intuitive. But maybe it doesn’t really matter if a word vector captures the meaning of a word; what matters, you might say, is just whether we can get the computer to use the word correctly or to make accurate predictions.</p><p>But if you’re interested in whether work on word vectors (or NLP in general) actually does more than produce some functioning product, then it’s worth taking a moment to consider what a meaning is. Thanks for taking the time to do so with me here.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90493d13af76" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/word-vectors-and-word-meaning-90493d13af76">Word Vectors and Word Meaning</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Data Can Boost Your Non-Profit]]></title>
            <link>https://medium.com/social-impact-analytics/how-data-can-boost-your-non-profit-1b4d1dd12e54?source=rss-1580c27a64ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b4d1dd12e54</guid>
            <category><![CDATA[nonprofit]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Kourosh Alizadeh]]></dc:creator>
            <pubDate>Fri, 09 Apr 2021 00:59:07 GMT</pubDate>
            <atom:updated>2021-04-09T01:36:44.327Z</atom:updated>
            <content:encoded><![CDATA[<h4>You’re already excellent, but it can’t hurt to put a number on it</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*G28CifGD1IPxJd2d" /><figcaption>Data-driven kindness please :) Photo by <a href="https://unsplash.com/@meilingmirow?utm_source=medium&amp;utm_medium=referral">Mei-Ling Mirow</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you’re running any kind of organization that interacts with the public, chances are you’re sitting on a pile of data. In many cases, this data is not formally contained on some central server, but it is there. Every time your members interact with clients, they generate some sort of information. Maybe they collect contact information, or start an email chain, or add to the files on a specific client. No matter how informally you may be collecting it, you have data.</p><p>On top of that, there is likely a lot of publicly available data that pertains to your field. Working on homelessness? There’s a <a href="https://www.kaggle.com/adamschroeder/homelessness">dataset</a> for that. Working on education? There’s a <a href="https://www.kaggle.com/theworldbank/education-statistics">dataset </a>for that. And not just one — most of these issues have many datasets from multiple sources that you can compare and consider.</p><p>Here, I won’t spend too much time on how to get pertinent data for your cause; that is a topic for another post. Instead, I want to start by motivating you to even get into the data game.</p><p>How can data help your non-profit? Here are three main ways:</p><h3>1. IDENTIFY NEEDS</h3><p>Imagine you want to improve education for underserved populations. Well, what populations are underserved? How is that disadvantage affecting them? What are the long-term consequences of having to attend less well-funded schools?</p><p>You may have a feel for the answers to these, but if you’re trying to pitch the concept to investors, having actual tangible data will be a lot more persuasive than common sense and your gut feelings. With the right data, you could demonstrate definitively that some populations are getting lower test scores, and you could identify contributing factors. You could even use machine learning to quantify the potential impact of your proposed interventions. All of this will give your potential funders a sense that you (and by extension, they) are addressing a concrete issue in a way that will get real results. Which means they’ll be much more likely to fund your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*Vad8_xttFEXpA0288zJ7sQ.png" /></figure><p>Identifying needs also gives you the potential to narrow the focus of your work. Maybe you want to improve education, but looking at the data shows you that educational weaknesses are most prevalent in elementary schools and among people whose parents didn’t go to college (for example). Well, now you can carve out a niche and tell a more vivid story with your work. You can paint the picture of a student whose parents are struggling to help them because of their own educational gaps. You can target potential investors who are themselves first-generation college students. You can propose interventions that specifically help your population, like providing educational aids to the parents of these students. All of these would give your organization a more clear identity and a more concrete mission.</p><p>To sum it all up, data can help your non-profit to identify real needs in the community and think creatively about how to address them. This, in turn, helps you get real results and drive further funding.</p><h3>2. REFINE PROCESSES</h3><p>Ok, so now you’ve got yourself started and you’re doing some good work in the community. Nice! The question you can start asking yourself here is — how are we doing this work?</p><p>Humanity’s capacity to organize is what allowed our species to rise above the apes and become the dominant species on the planet. But it’s still profoundly imperfect, and every organization is probably wasting resources on any number of erroneous tasks. By exploring the data, you can streamline and refine the way your non-profit functions so that you spend less time on minutiae and more time on your mission — helping the community.</p><p>This could be as simple as moving your data from a paper filing system to a digital one; that’ll take some data warehousing know-how, but it’ll greatly improve your workflows. Or maybe you see that whenever a certain issue comes up, the email chains tend to be 3 times as long as the average. Well, maybe we need to put an official process in place to handle those cases so that people don’t spend forever negotiating the issue themselves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pJoY1MGPJtgVBJrx7mZgNQ.png" /></figure><p>You can also see what’s not working. Maybe one of your case workers usually has a great record but they’ve been working with a certain family for a long time without getting results. In such a case, you could investigate why this particular case is proving difficult; maybe another case worker has a different style that would be better suited to it. Or maybe you find that on days when you don’t put out coffee, the number of people coming to the shelter is typically 10% lower than normal. That’s something you may not be able to detect just by being there, but it’s an easy data point to measure, then change, and thus increase your organization’s impact.</p><h3>3. DEMONSTRATE VALUE</h3><p>Great, so now you’ve identified a need and you’ve got some great techniques to help meet it. And you’ve been plugging along for a while, but now it’s time to expand or to pump up your fundraising. Don’t worry, the data has your back on this one too.</p><p>Imagine two grant proposals from education-oriented non-profits. In one of them, the author writes that their organization ‘did great work’ and ‘made big contributions’ to improve test scores for first-generation college students. In the other, the organization says the same things, but also provides a number of different graphs and tables to demonstrate that thanks to their work, test scores for first-generation college students improved by 25% overall. Who would you rather fund? It’s a no-brainer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*540CDEdvU0POJyQnWe06Yg.png" /></figure><p>This kind of before-and-after comparison can prove to potential funders that you know what you are doing and can get results. But it also shows that you are making an effort to measure your impact and improve. This demonstrates a greater potential for future growth as well as showing that you are able to get results now.</p><p>And of course, it’s not always about investors. You can also use data to pat your team on the back and show them that their work really makes a difference. That, after all, is why you’re in the non-profit business, and being able to demonstrate that to your team and to yourself can provide a great morale boost and energize your entire organization.</p><h3>CONCLUSION</h3><p>Data can help your non-profit identify real needs, refine its processes, and give concrete proof of its community contribution.</p><p>To sum it up, I’ll leave you with a little analogy. The difference between an organization that uses its data intelligently and one that runs mostly by gut instincts is like the difference between a physical conversation in person and a conversation via text. In person, you can see how your words impact your conversation partner based on a whole spectrum of inputs, from their face to their body language to their tone. You can intuitively adjust your own tone and body language to suit the situation, and if you need to help them, you can do anything from giving them a hug to handing them a tissue. On the other hand, if you’re just texting, then you get just the flat written text, with no other cues. It can be hard to tell what people are really thinking or feeling, and even harder to provide meaningful help except with the most basic ‘sorry to hear that’ kind of messages.</p><p>I’d much rather be the organization actually talking to my clients than the one texting them from miles away.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b4d1dd12e54" width="1" height="1" alt=""><hr><p><a href="https://medium.com/social-impact-analytics/how-data-can-boost-your-non-profit-1b4d1dd12e54">How Data Can Boost Your Non-Profit</a> was originally published in <a href="https://medium.com/social-impact-analytics">Social Impact Analytics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Winter Is Here]]></title>
            <link>https://kcalizadeh.medium.com/winter-is-here-aaab3122d3e0?source=rss-1580c27a64ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/aaab3122d3e0</guid>
            <category><![CDATA[horror-fiction]]></category>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[horror]]></category>
            <category><![CDATA[surrealism]]></category>
            <category><![CDATA[flash-fiction]]></category>
            <dc:creator><![CDATA[Kourosh Alizadeh]]></dc:creator>
            <pubDate>Tue, 06 Apr 2021 16:31:59 GMT</pubDate>
            <atom:updated>2021-04-06T16:31:59.265Z</atom:updated>
            <content:encoded><![CDATA[<p>Small and delicate as a deer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NwIrOi56aEzJZOwQe2y63g.jpeg" /><figcaption>image by the author</figcaption></figure><p>When Sylvie looked out the kitchen window that morning the ground outside was very white. Almost two feet of snow had fallen overnight.</p><p>Take a map to understand the dynamic system that is her hair. Parted here cascading there. If, for example, you were to replace the wires in your computer with these straw-colored strands. Then no doubt your computer would be smooth and fast, as beautiful as butter, as elegant as the little cat curled up in a ball sleeping on your pillow.</p><p>So then, Sylvie gulped down a small glass of water and sat down on the sofa. It was Sunday and it was time to read her favorite book: <em>The Refutation of Glass</em>, by Adolfo Casares.</p><p>She was just settling in when she saw a tiny white deer standing on the coffee table. Kind of a strange experience, to be sure. She reached out to touch it, but she felt nothing — her hand went right through it. The deer, so nice. White as the sunshine, about the size of a big cat. Looking around like a lost lamb, but never at Sylvie.</p><p>There was a knock on the door. She got up and, with a last look at the deer, left the living room to answer it.</p><p>Stop again for a moment and consider how cold the doorknob is when Sylvie reaches out to grasp it. How the blue of her veins shines through the pale skin of her hand. The small fading triangle tattooed on the back of her hand, just below the index finger’s first knuckle. All these things (and no doubt countless more) existed in that moment that do not exist any more.</p><p>At the door there was nothing. A gust of wind blew some snow in the house, along with a dead leaf. In the cold, we don’t wait long to see who it is, plus there is an odd deer to look into. Sylvie closed the door quickly and went back to the living room to examine it further.</p><p>But there was no space for her in that room, there was no space for anything except for the huge white head of an enormous deer, its black eyes dark like the caves of prehistoric winters. Sylvie could feel its presence like a bass note vibrating, heavy and vast, massive and dark.</p><p>It’s eyes found her. Rolled to regard her.</p><p>“Winter is here, Sylvie.”</p><p>She heard the voice in her head, pushing out everything else, somehow louder and stronger but at the same time sounding like her, like her timbre and tone, as if she were speaking to herself but with more conviction and power than she had ever had before.</p><p>It held her with its eyes. And then it opened its mouth and started to scream. Louder and louder as its white fur turned blacker and blacker, as if it were burning with a black flame. Sylvie shut her eyes and covered her ears and found that she was screaming, too.</p><p>And when she opened them again she was alone. <em>The Refutation of Glass</em> was there on the sofa where she had left it.</p><p>The kettle started to sing; she was making some tea. Winter was here, after all.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aaab3122d3e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Skin the Devil]]></title>
            <link>https://kcalizadeh.medium.com/skin-the-devil-3db9955b9097?source=rss-1580c27a64ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/3db9955b9097</guid>
            <category><![CDATA[horror]]></category>
            <category><![CDATA[devil]]></category>
            <category><![CDATA[flash-fiction]]></category>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[abstract]]></category>
            <dc:creator><![CDATA[Kourosh Alizadeh]]></dc:creator>
            <pubDate>Sat, 03 Apr 2021 06:26:08 GMT</pubDate>
            <atom:updated>2021-04-03T06:26:08.918Z</atom:updated>
            <content:encoded><![CDATA[<p>After all why not?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*li32MeO-RFRqGNPy" /><figcaption>Photo by the author.</figcaption></figure><p>“Skin the devil,” she said. But after all where and how will I catch him and hold him? And supposing I have caught him, why skin him?</p><p>Well I asked her all this and she said, “Just go down to the well &amp; wait until he comes up. Then toss the bag over him and bundle him up quick.”</p><p>Sounded a bit scary but I set out to do it. Sat at the well all night. Looked up at the moon glowing all full, like God’s eyeball, with all the angels staring down through the stars. Next I know, small sounds from the well come cling to my ears. It was the Devil himself. I looked in there but it was really too dark, all I saw was a wet-looking man with a long slimy tail forked at the end like a snake’s tongue.</p><p>Dunno, at that moment felt really sad. That thing coming up the well just brought me down. It looked so pathetic, so useless. Living in a well.</p><p>Anyway, I had a job to do. I got real quiet and waited for it to come out. Soon enough it was there, sitting on the ledge the mouth of the well. Up close he was a good deal smaller than I thought, couldn’t be more than four feet head to toe. Quick as a whisker I jumped up and threw the bag over his head, picked him up and ran to see Clarissa. Dang Devil never even kicked or squirmed. Kinda worried me, almost like he wanted to be caught.</p><p>When I got to her shed I must’ve had that Devil-catcher’s twinkle in my eye cuz she caught it right away and gave a giggle.</p><p>“Didn’t think you’d actually do it!”</p><p>But I did, so there. So I smacked the bag on the ground a couple times to knock him good and dead, and then we opened it up.</p><p>And there he was, a little dark-grey man, kind of burly, eyes closed like a monk, curled up in himself like a baby, with his tail wrapped around.</p><p>Still, just looking at him sleeping there made me so sad. I looked over at Clarissa and there were tears in her eyes.</p><p>I put my hand to my back pocket to get the knife, but Clarissa touched my arm. “Don’t lets,” she whispered, her voice catching in her throat. “I couldn’t bear it.”</p><p>Just then from the corner of my eye I swear I saw that Devil smile. But truth be told I didn’t have it in me to do it either. And he was dead, after all.</p><p>So Clarissa and I went into the shed to bed. Next morning woke up to a smell like lilacs and lavender. I looked in the bag and the Devil looked a grey purple in the morning sunlight. I dumped him on the ground there. And then, don’t ask me why, but I just sat down next to his purple body, all splayed out, and started crying my eyes out. Clarissa must’ve heard me, she came out and hugged me up to comfort me but she was crying too.</p><p>Eventually we got a hold of ourselves.</p><p>“We gotta get rid of that thing,” I said, and this time she didn’t stop the knife. I skinned him good. Tossed the body into the woods when I was done. I won’t be the one to eat the Devil’s meat.</p><p>Sold his skin (and his tail) for a few bucks down the road. Hear a dwarf uses it now as a costume to scare kids in the circus.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3db9955b9097" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Limitations of Twitter Data]]></title>
            <link>https://medium.com/data-science/limitations-of-twitter-data-94954850cacf?source=rss-1580c27a64ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/94954850cacf</guid>
            <category><![CDATA[cleaning]]></category>
            <category><![CDATA[bias]]></category>
            <category><![CDATA[twitter]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Kourosh Alizadeh]]></dc:creator>
            <pubDate>Fri, 02 Apr 2021 08:13:54 GMT</pubDate>
            <atom:updated>2022-09-16T14:29:47.805Z</atom:updated>
            <content:encoded><![CDATA[<h4>Issues to be aware of when using Twitter text data</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8ufq6lwpHY8mE9mb" /><figcaption>Photo by <a href="https://unsplash.com/@alexbemore?utm_source=medium&amp;utm_medium=referral">Alexander Shatov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Due to Twitter’s accessible and easy-to-use API, it has become common to use the social media platform as a data source for data science projects. It’s easy to search for all the occurrences of a hashtag, for example, and convince yourself that you’re tapping in to the worldwide conversation on a given issue.</p><p>But while Twitter is an excellent source of data overall, we should be careful about the kinds of conclusions we draw from Twitter data. In this article, I want to outline a few of the challenges that we can face when we decide to use Twitter as a data source. Some of these are technical issues that can be overcome, others are endemic problems that we need to bear in mind when interpreting our results.</p><h3>1. TWITTER USER DEMOGRAPHICS ARE SKEWED</h3><p>This is probably not a surprise to anyone, but it is something often brushed over when people present their conclusions from Twitter data. First of all, only about 22% of Americans use Twitter. So we can hardly claim to encompass the population. Still, it could work as a representative sample, right?</p><p>Sadly, this isn’t really the case. Twitter’s users do not represent the general population of the world, or even the population of their particular regions. They tend to be younger, more left-leaning, and more affluent than the overall population. Just think about it — when was the last time your grandfather used Twitter? This means that if you’re doing research on a possible customer base or political issue, focusing on Twitter alone can lead you to somewhat erroneous conclusions.</p><p>For more detail on Twitter user demographics, check <a href="https://blog.hootsuite.com/twitter-demographics/">here</a> and <a href="https://www.omnicoreagency.com/twitter-statistics/#:~:text=Roughly%2042%25%20of%20Twitter%20users,monetizable%20daily%20active%20Twitter%20users.&amp;text=38%25%20of%20U.S.%20Twitter%20users,%2475%2C000%20or%20more%20use%20Twitter.">here</a>.</p><h3><strong>2. TWEET RATES ARE SKEWED</strong></h3><p>So the demographics of Twitter’s userbase are not necessarily representative of the overall population. Maybe it’s not such a big deal. After all, when we use libraries like Tweepy, we usually get sets of tweets, not users.</p><p>But tweets and users do not maintain a consistent ratio across the platform. Some people tweet a lot, others not at all. In fact, according to PEW Research Center, <a href="https://www.pewresearch.org/internet/2019/04/24/sizing-up-twitter-users/">80% of tweets come from the top 10% most active users</a>. This means that when you examine a collection of tweets, you aren’t necessarily seeing a selection of different users’ opinions. Instead, it is more likely that you are seeing the opinions of a small subset of users repeated over and over.</p><h3>3. RETWEETS</h3><p>A major part of Twitter is the ability to ‘retweet’ a specific tweet, often with your own commentary added to it. Retweets are often understood as endorsements of a position, but it is not rare to see a tweet retweeted along with a criticism of it.</p><p>So if we are using Twitter data, we have to decide how to treat retweets — do we count retweets as agreement, so that multiple retweets of an idea make that idea weigh more heavily? Or should we only count a tweet once, no matter how often it is retweeted? The first option will fail to fully account for those retweets that actually function as criticism, and the second will flatten the conversation so that the influential retweeted statements are kept on the same level as random comments from the periphery. Either choice leaves something to be desired, but a choice has to be made.</p><h3>4. BAD ACTORS</h3><p>Twitter is not a platform where people gather together to give you nice clean data. It is famously full of non-human conversationalists (bots), as well as human-generated noise. While authentic human tweets far outweigh those by bots, the issue still can contaminate your data.</p><p>Tweets by bots can be hard to detect, especially with small sample sizes. Yet they can skew your data, just as they are occasionally intended to purposively skew the conversation. Indeed, bots tend to tweet more often and to use key terms more frequently than normal human beings because they are focused in on specific elements of a conversation. This means that they create more noise in the data than a normal human being might.</p><p>In addition to bots, there are occasional attempts by human beings to manipulate the Twitter algorithms for unusual purposes, be they comedic, political, or more boringly self-promotional. For example, in January 2021 K-pop fans saw that the hashtag #ImpeachBidenNow was trending and <a href="https://twitter.com/lolly_lunar/status/1352754796252573700">jumped on it</a>, using it to share their favorite Korean pop stars. In so doing, they drowned out the original conversation regarding Biden’s politics (K-pop fans themselves tend to be left-leaning), and replaced it with their favorite topic. Anyone trying to study that particular hashtag will have to contend with their unique form of creative Twitter activism.</p><h3>5. SCRAPING OFTEN YIELDS MEANINGLESS TWEETS</h3><p>Now, I don’t want to imply that most tweets are meaningless. But in the context of a giant dataframe of tweets, many of them are stripped of context or too short to serve as real carriers of meaning. In other cases, whatever meaning the tweet has is hidden behind a link to an image or a website, which presents a whole new set of challenges.</p><p>This issue can be broken down into a two subcategories. First, there are the tweets whose strings contain information that is hard to parse. Some of these are easier to deal with than others. Emojis, for example, can be accounted for in a lot of sentiment analysis libraries. More difficult, however, are links and images. You can exclude these from your dataset (this seems to be the most common recourse) but in so doing you lose a decent chunk of your data and risk skewing your results.</p><p>Second, many tweets in a conversation are responses to previous tweets. Imagine the tweet ‘@aslidsiksoraksi totally agree.’ Well, what are they agreeing with? To find out, you have to find the tweet they’re replying to, which can be somewhat difficult. And then you have to somehow use the previous tweet to contextualize this one. Maybe you’ll use topic modeling to figure out what the first one was about, then you can use sentiment analysis to decide if the latter is for or against it? All this work just to figure out the meaning of a single reply, and you can see it’s a losing battle. Replies are a common part of Twitter user interaction, indeed they are the essence of conversation. But taken alone and without context, many of them have no clear meaning.</p><h3>6. TEXTUAL ODDITIES</h3><p>Twitter requires users to stick to a character limit. It is also used overwhelmingly on mobile devices, where users have access to an autocorrect that will fix their spelling for them. Both of these can create oddities in the way tweets are written that would not be present in normal language. So, for example, if your GloVe vectors are trained on newspapers, it’s not clear that they’ll work as well on tweets.</p><p>The character limit on tweets often means users abbreviate words. These words tend to be stopwords, so this may not be a particularly problematic issue. But when conversations focus on specific topics, people often invent acronyms on the fly or omit words whose presence can be inferred by humans. These acronyms and omissions could possibly be detected by a machine learning technique, but that’s a whole other layer that complicates the matter.</p><p>In addition, Twitter data is going to have some errors due to autocorrect (and normal spelling errors too, of course). Unlike spelling errors, autocorrect errors are harder to detect since the problematic word is a real word, just used in the wrong way. Again, there are certainly tools that can correct for this, but using them adds an additional layer of complexity to any Twitter-based research project.</p><h3>7. SARCASM &amp; JOKES</h3><p>Detecting sarcasm and humor accurately is something of a holy grail for NLP researchers. Humans on their own aren’t amazingly good at detecting sarcasm in particular, especially when the only clues are a few lines of text. But sarcasm is a common part of conversations, especially online conversations. If you take Twitter data and don’t account for sarcasm, you are accepting a certain level of noise that can adversely affect your results. Jokes, too are common throughout Twitter, and if we don’t take them to account, they will be another source of noise in our data.</p><p>For more on efforts to detect sarcasm, check out this <a href="https://towardsdatascience.com/sarcasm-detection-with-nlp-cbff1723f69a">excellent article</a>.</p><h3>CONCLUSION</h3><p>There is no denying that Twitter is an invaluable source of data for data scientists, journalists, and anyone trying to understand what people are saying about a given topic. But all too often we see studies using Twitter and imagining that they can get results that are informative, representative, and useful, all with a minimum of cleaning. Several features of how Twitter works conspire against this kind of straightforward interpretation of the data. Twitter is not a literal log of the population’s conversations — it is its own platform, with its own idiosyncrasies and oddities. Any exploration of Twitter data should be sensitive to these in order to get the best results possible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94954850cacf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/limitations-of-twitter-data-94954850cacf">Limitations of Twitter Data</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transfer Learning with GloVe Word Vectors]]></title>
            <link>https://medium.com/data-science/transfer-learning-with-glove-word-vectors-7652456ae269?source=rss-1580c27a64ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/7652456ae269</guid>
            <category><![CDATA[transfer-learning]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[word-vectors]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Kourosh Alizadeh]]></dc:creator>
            <pubDate>Thu, 25 Mar 2021 16:25:56 GMT</pubDate>
            <atom:updated>2021-03-25T16:32:36.086Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qdHvg8iHysj9sG6X" /><figcaption>It’s a vector, ok?? Photo by <a href="https://unsplash.com/@tamanna_rumee?utm_source=medium&amp;utm_medium=referral">Tamanna Rumee</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the past, I was training word vectors for a <a href="http://philosophydata.com/w2v.html">project of mine</a>, but I kept hitting the same wall. I was working with texts from the history of philosophy, trying to get vectors that could reveal how an author uses a word. But I kept getting results like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*t4hQOl3otSFFpjynNA9oDQ.png" /><figcaption>I mean, I DO love Spinoza…</figcaption></figure><p>If you squint very hard then maybe this can make sense. After all, love does have something to do with perfection and it is stimulating… right?</p><p>But the similarity scores are tiny, and we don’t want to wear our eyes out squinting at the results to make them make sense. They should be illuminating for us — we shouldn’t be the ones bringing the illumination to them.</p><p>To fix this problem, I tried tweaking ever hyperparameter under the sun, but despite what felt like a literal epoch of work, the results were never much better than this.</p><p>But then I had a brainwave. Instead of training the data on my dataset alone, I would use GloVe’s pre-trained word vectors as a baseline. This would mean that essentially my machine would know basic English already, and then would just have to be fine-tuned to match my data more accurately.</p><p>This process turned out to be a bit more difficult than I expected, and there weren’t any complete guides that I could find, so I thought I’d write one up for you. There are essentially three steps to the process, and I’ll go through them in order. If you want to just get a function that will do it all, feel free to skip to the end or check out this <a href="https://github.com/kcalizadeh/phil_nlp/blob/master/Notebooks/3_w2v.ipynb">notebook</a>.</p><p>You will need the Gensim Word2Vec library for this tutorial.</p><h3>STEP 1: LOAD GLOVE VECTORS</h3><p>To train on the GloVe embeddings, you need (big surprise) to load the embeddings into your system. You can download them <a href="https://nlp.stanford.edu/projects/glove/">here</a>.</p><p>Once you have a file, you can load it using the following code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8e072733d97e96de0e59e553fc5ae069/href">https://medium.com/media/8e072733d97e96de0e59e553fc5ae069/href</a></iframe><p>This essentially takes the .txt you got from the GloVe website and loads it in the appropriate format for the Gensim Word2Vec library. At this point you can do the usual similarity searches to test if everything loaded correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*rklqUTANggtIM5YF7bgocA.png" /><figcaption>love truly is a dream ❤</figcaption></figure><p>As you can see, the GloVe embeddings make a ton more sense than what we were getting before.</p><h3>STEP 2: BUILD A TOY MODEL TO UPDATE FROM</h3><p>In this step you essentially build a Word2Vec model from your data without using GloVe yet. This model enables you to capture new words and build a vocabulary that encompasses your specific dataset, which is useful if you’re working with texts that aren’t just normal English.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d992aa1467774a8099564a8655e2381c/href">https://medium.com/media/d992aa1467774a8099564a8655e2381c/href</a></iframe><p>Ok great, now you have a crappy model you can work with as a base. Now comes the cool stuff.</p><h3>STEP 3: ADD GLOVE WEIGHTS AND RETRAIN</h3><p>Here you will take your existing model, add the GloVe vocabulary and starting weights, and retrain it on your dataset.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/af96d62a42993c552014b419ecfdfa95/href">https://medium.com/media/af96d62a42993c552014b419ecfdfa95/href</a></iframe><p>The result will be a new set of word vectors that use GloVe’s original weights, but now are tuned to incorporate your own data as well. Here’s an example of a result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*RIa2VxxssPt8qnPxwpJsiA.png" /><figcaption>note that this was trained on the rationalist school of philosophy</figcaption></figure><p>You may not know a lot about rationalist philosophy but trust me, this makes pretty much perfect sense. One of their major focal points is god, and we can see that almost all of these make sense in the context of discussion of god’s love — God loves us because he is good, his grace is a manifestation of that love, he gave us freedom because he loves us, etc. Indeed, just the fact that the usage of ‘love’ centers around the concept of God shows that this is working well, and the similarity scores are much higher.</p><p>Another, even better, test of your results is to check your new vectors against the original GloVe vectors by running .most_similar on a word you know has different connotations in your specific dataset. Here’s an example of results I got:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*ynlC-6TtWyvWtluQi20GPg.png" /><figcaption>how ‘philosophy’ is used by philosophers vs colloquial English</figcaption></figure><p>You can see that in the philosophical corpus, ‘philosophy’ is associated with science and metaphysics, where in the base GloVe corpus, there is no such connection.</p><p>This makes good sense. Metaphysics has a very different meaning in colloquial English (where it’s associated with astrology and the supernatural) vs philosophy (where it’s a major subfield). So when philosophers talk about philosophy, metaphysics is always in the discussion, but when normal people talk about philosophy, they will almost never associate it with metaphysics. Philosophers also think of themselves as scientific or otherwise in conversation with the natural sciences, where the general public does not typically see a strong connection between philosophy and science.</p><h3>BONUS STEP: BRINGING IT ALL TOGETHER</h3><p>Well, great! At this point you now have a beautiful word embedding that can be used in its own right to generate insights into your corpus, or can be used in deep learning or other applications.</p><p>All that’s left is to bring it all together in a single function:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ede83ad90984eeec4c457218e124bc8/href">https://medium.com/media/0ede83ad90984eeec4c457218e124bc8/href</a></iframe><p>If you want to see the results in action, you can check out the Philosophy Data Project’s <a href="http://philosophydata.com/w2v.html">word use analysis page</a>. For the repo containing this and other NLP work, check <a href="https://github.com/kcalizadeh/phil_nlp">here</a>.</p><p>Thanks for your time and please feel free to reach out with any questions or issues you run into :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7652456ae269" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/transfer-learning-with-glove-word-vectors-7652456ae269">Transfer Learning with GloVe Word Vectors</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>