<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Natural Language Processing on Arshad Siddiqui</title><link>https://arshadhs.github.io/categories/natural-language-processing/</link><description>Recent content in Natural Language Processing on Arshad Siddiqui</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://arshadhs.github.io/categories/natural-language-processing/index.xml" rel="self" type="application/rss+xml"/><item><title>Understanding and Generation</title><link>https://arshadhs.github.io/docs/ai/050-nlp/010-natural-language-understanding-and-generation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/050-nlp/010-natural-language-understanding-and-generation/</guid><description>&lt;h1 id="nlp---understanding-and-generation">
 NLP - Understanding and Generation
 
 &lt;a class="anchor" href="#nlp---understanding-and-generation">#&lt;/a>
 
&lt;/h1>
&lt;ul>
&lt;li>The Study of Language.&lt;/li>
&lt;li>Applications of Natural Language Understanding.&lt;/li>
&lt;li>Evaluating Language Understanding Systems.&lt;/li>
&lt;li>Different Levels of Language Analysis.&lt;/li>
&lt;li>Organisation of Natural Language Understanding Systems.&lt;/li>
&lt;/ul>
&lt;h2 id="learning-objectives">
 Learning Objectives
 
 &lt;a class="anchor" href="#learning-objectives">#&lt;/a>
 
&lt;/h2>
&lt;ul>
&lt;li>Explain what Natural Language Processing studies and how it relates to artificial intelligence and linguistics.&lt;/li>
&lt;li>Describe why human language is difficult for computers to process.&lt;/li>
&lt;li>Recognise the main applications and stages of an NLP pipeline.&lt;/li>
&lt;li>Distinguish morphological, lexical, syntactic, semantic, pragmatic, and discourse analysis.&lt;/li>
&lt;li>Explain the relationship between natural language understanding and natural language generation.&lt;/li>
&lt;li>Identify suitable ways to evaluate different NLP systems.&lt;/li>
&lt;/ul>
&lt;!--
## Map

| Section | Topic | Status |
|---|---|---|
| 1 | What Is Natural Language Processing?
| 2 | Why NLP Matters
| 3 | Evolution of NLP
| 4 | NLP Applications
| 5 | The NLP Pipeline
| 6 | Ambiguity and Why NLP Is Difficult
| 7 | Levels of Language Analysis
| 8 | Natural Language Understanding and Generation
| 9 | Evaluating NLP Systems
-->
&lt;h2 id="big-picture">
 Big Picture
 
 &lt;a class="anchor" href="#big-picture">#&lt;/a>
 
&lt;/h2>


&lt;pre class="mermaid">flowchart TD
 A[Human Language] --&amp;gt; B[Acquire and Prepare Text or Speech]
 B --&amp;gt; C[Analyse Language Structure]
 C --&amp;gt; D[Represent Meaning and Context]
 D --&amp;gt; E[Model or Reason]
 E --&amp;gt; F[Understand, Predict or Generate]
 F --&amp;gt; G[Evaluate and Improve]

 style A fill:#E1F5FE
 style B fill:#C8E6C9
 style C fill:#FFF9C4
 style D fill:#EDE7F6
 style E fill:#E1F5FE
 style F fill:#C8E6C9
 style G fill:#FFF9C4&lt;/pre>
&lt;h2 id="1-what-is-natural-language-processing-">
 1. What Is Natural Language Processing? ☆
 
 &lt;a class="anchor" href="#1-what-is-natural-language-processing-">#&lt;/a>
 
&lt;/h2>
&lt;p>Natural language processing (NLP) is the discipline of building machines that can manipulate human language - or data that resembles human language - in the way that it is written, spoken, and organised.&lt;/p></description></item><item><title>Vector Semantics and Embedding</title><link>https://arshadhs.github.io/docs/ai/050-nlp/020-vector-semantics-and-embedding/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/050-nlp/020-vector-semantics-and-embedding/</guid><description>&lt;h1 id="nlp---vector-semantics-and-embedding">
 NLP - Vector Semantics and Embedding
 
 &lt;a class="anchor" href="#nlp---vector-semantics-and-embedding">#&lt;/a>
 
&lt;/h1>
&lt;ul>
&lt;li>Lexical semantics and word meaning.&lt;/li>
&lt;li>Lemmas, senses, and semantic relationships.&lt;/li>
&lt;li>Distributional hypothesis.&lt;/li>
&lt;li>Vector semantics and word embeddings.&lt;/li>
&lt;li>Document and word vectors.&lt;/li>
&lt;li>Dot product and cosine similarity.&lt;/li>
&lt;li>Term Frequency–Inverse Document Frequency (TF-IDF).&lt;/li>
&lt;li>Prediction-based word embeddings and self-supervision.&lt;/li>
&lt;li>Word2Vec using Skip-gram with Negative Sampling and CBOW.&lt;/li>
&lt;li>Embedding matrices, context-window choices, analogies, visualisation, and bias.&lt;/li>
&lt;li>GloVe and global word–word co-occurrence statistics.&lt;/li>
&lt;/ul>
&lt;h2 id="learning-objectives">
 Learning Objectives
 
 &lt;a class="anchor" href="#learning-objectives">#&lt;/a>
 
&lt;/h2>
&lt;ul>
&lt;li>Explain lexical semantics and distinguish a lemma from a word sense.&lt;/li>
&lt;li>Compare synonymy, similarity, relatedness, antonymy, and connotation.&lt;/li>
&lt;li>Explain the distributional hypothesis and its role in modelling meaning.&lt;/li>
&lt;li>Describe how words and documents can be represented as vectors.&lt;/li>
&lt;li>Construct and interpret word–document and word–context matrices.&lt;/li>
&lt;li>Calculate dot product and cosine similarity between vectors.&lt;/li>
&lt;li>Explain why raw word frequency can be misleading.&lt;/li>
&lt;li>Calculate TF, IDF, and TF-IDF weights.&lt;/li>
&lt;li>Explain how Word2Vec learns embeddings from a prediction task.&lt;/li>
&lt;li>Construct positive and negative Skip-gram training pairs.&lt;/li>
&lt;li>Explain how sigmoid, negative sampling, and gradient descent train SGNS.&lt;/li>
&lt;li>Compare Skip-gram with CBOW.&lt;/li>
&lt;li>Explain how context-window size affects the relationships captured.&lt;/li>
&lt;li>Interpret word analogies and two-dimensional embedding visualisations.&lt;/li>
&lt;li>Explain how GloVe combines global counts with learned dense vectors.&lt;/li>
&lt;li>Recognise how social biases can be encoded in word embeddings.&lt;/li>
&lt;/ul>
&lt;!--
## Map

| Section | Topic | Status |
|---|---|---|
| 1 | Lexical Semantics |
| 2 | Lemmas and Word Senses |
| 3 | Semantic Relationships |
| 4 | Distributional Hypothesis |
| 5 | Vector Semantics and Word Embeddings |
| 6 | Documents as Vectors |
| 7 | Words as Vectors |
| 8 | Dot Product |
| 9 | Cosine Similarity |
| 10 | TF-IDF |
| 11 | Count-Based and Prediction-Based Embeddings |
-->
&lt;h2 id="big-picture">
 Big Picture
 
 &lt;a class="anchor" href="#big-picture">#&lt;/a>
 
&lt;/h2>


&lt;pre class="mermaid">flowchart TD
 A[Words and Documents] --&amp;gt; B[Observe Their Context]
 B --&amp;gt; C[Represent Them as Vectors]
 C --&amp;gt; D[Compare Vector Directions]
 D --&amp;gt; E[Estimate Semantic Similarity]
 E --&amp;gt; F[Search, Classify, Retrieve or Generate]

 style A fill:#E1F5FE
 style B fill:#C8E6C9
 style C fill:#FFF9C4
 style D fill:#EDE7F6
 style E fill:#E1F5FE
 style F fill:#C8E6C9&lt;/pre>
&lt;h2 id="1-lexical-semantics-">
 1. Lexical Semantics ☆
 
 &lt;a class="anchor" href="#1-lexical-semantics-">#&lt;/a>
 
&lt;/h2>
&lt;p>&lt;strong>Lexical semantics&lt;/strong> is the linguistic study of word meaning and the relationships between word meanings.&lt;/p></description></item></channel></rss>