<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Grace UMUTONIWASE</title>
    <description>The latest articles on DEV Community by Grace UMUTONIWASE (@grace_umutoniwase_b6e978d).</description>
    <link>https://dev.to/grace_umutoniwase_b6e978d</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4154171%2Ffa2fc0ea-9dd8-4442-9642-221ddb15fac4.jpeg</url>
      <title>DEV Community: Grace UMUTONIWASE</title>
      <link>https://dev.to/grace_umutoniwase_b6e978d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/grace_umutoniwase_b6e978d"/>
    <language>en</language>
    <item>
      <title>My First Steps into Word Embeddings with Word2Vec</title>
      <dc:creator>Grace UMUTONIWASE</dc:creator>
      <pubDate>Thu, 01 Oct 2026 15:07:26 +0000</pubDate>
      <link>https://dev.to/grace_umutoniwase_b6e978d/my-first-steps-into-word-embeddings-with-word2vec-13l1</link>
      <guid>https://dev.to/grace_umutoniwase_b6e978d/my-first-steps-into-word-embeddings-with-word2vec-13l1</guid>
      <description>&lt;ol&gt;
&lt;li&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Explain what word embeddings are and why they matter: so, Word embeddings are numerical representations of words. Each word is represented by a list of numbers called a vector.&lt;br&gt;
For example, imagine representing two words using simplified vectors:&lt;/p&gt;

&lt;p&gt;happy = [0.8, 0.7, 0.2]&lt;br&gt;
joyful = [0.7, 0.8, 0.3]&lt;/p&gt;

&lt;p&gt;These numbers are only illustrative, not real trained embeddings.&lt;/p&gt;

&lt;p&gt;And why they matter :Word embeddings are useful because many NLP tasks require a computer to process language beyond simply identifying individual words.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Cover at least one embedding method which is Word2Vec.so,Word2Vec is a popular technique used in Natural Language Processing (NLP) to learn word embeddings. It converts words into numerical vectors by learning from the contexts in which words appear in a large collection of text.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Word2Vec is a method that teaches a computer to understand relationships between words by learning from the words that appear around them.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How does it work?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;. It reads sentences&lt;/p&gt;

&lt;p&gt;For example: “I love learning Python.”&lt;/p&gt;

&lt;p&gt;Word2Vec looks at the words and how they appear together.&lt;br&gt;
How does it work?&lt;/p&gt;

&lt;p&gt;. It learns from context&lt;/p&gt;

&lt;p&gt;If it sees “I love learning Python” and “I enjoy learning Python,” it notices that love and enjoy appear in similar contexts.&lt;/p&gt;

&lt;p&gt;. It converts words into numbers&lt;/p&gt;

&lt;p&gt;During training, Word2Vec learns a numerical vector for each word. Words used in similar contexts may end up with similar vectors.&lt;/p&gt;

&lt;p&gt;. It learns relationships&lt;/p&gt;

&lt;p&gt;After training, we can use the vectors to find words that are similar in context.&lt;/p&gt;

&lt;p&gt;Two ways Word2Vec learns&lt;/p&gt;

&lt;p&gt;CBOW: Uses surrounding words to predict a missing word.&lt;/p&gt;

&lt;p&gt;Skip-gram: Uses one word to predict the surrounding words.&lt;/p&gt;

&lt;p&gt;Sentences → Context → Training → Word vectors → Word relationships`&lt;/p&gt;

&lt;p&gt;Word2Vec does not understand language exactly like a human. It learns patterns from the text it receives. If its training data is too small, its results may not be reliable.&lt;/p&gt;

&lt;p&gt;. Include at least one concrete example: a code snippet, a similarity result, an analogy, or a&lt;br&gt;
visualisation.&lt;/p&gt;

&lt;p&gt;&amp;lt;&amp;gt;&lt;br&gt;
from gensim.models import Word2Vec&lt;/p&gt;

&lt;h1&gt;
  
  
  Example training sentences
&lt;/h1&gt;

&lt;p&gt;sentences = [&lt;br&gt;
    ["i", "love", "learning", "python"],&lt;br&gt;
    ["i", "enjoy", "learning", "python"],&lt;br&gt;
    ["i", "love", "learning", "mathematics"],&lt;br&gt;
    ["python", "is", "interesting"],&lt;br&gt;
    ["mathematics", "is", "interesting"]&lt;br&gt;
]&lt;/p&gt;

&lt;p&gt;4.Share something you learned, found surprising, or struggled with :&lt;/p&gt;

&lt;p&gt;What I Learned and Found Surprising&lt;/p&gt;

&lt;p&gt;One thing I learned is that computers can learn relationships between words by studying the words that appear around them. I found it surprising that Word2Vec can convert words into numerical vectors and use those vectors to identify words that are used in similar contexts.&lt;/p&gt;

&lt;p&gt;At first, I struggled to understand how words could be represented by numbers and how those numbers could show relationships between words. After learning about CBOW and Skip-gram, I understood that Word2Vec learns from context: CBOW predicts a word from its surrounding words, while Skip-gram predicts surrounding words from a given word.&lt;/p&gt;

&lt;p&gt;This experience helped me understand how Natural Language Processing (NLP) allows computers to work with human language. I also learned that the quality of the results depends on the amount and quality of the training data.&lt;/p&gt;

&lt;p&gt;Learning about Word2Vec has helped me understand an important concept in Natural Language Processing. I now understand how a model can learn word vectors by studying surrounding words and how these vectors can be used to explore similarities between words.&lt;/p&gt;

</description>
      <category>nlp</category>
      <category>python</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
