<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Grammars on Arshad Siddiqui</title><link>https://arshadhs.github.io/tags/grammars/</link><description>Recent content in Grammars on Arshad Siddiqui</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://arshadhs.github.io/tags/grammars/index.xml" rel="self" type="application/rss+xml"/><item><title>Grammars, Parsing, and Morphological Processing</title><link>https://arshadhs.github.io/docs/ai/050-nlp/080-grammars-parsing-and-morphological-processing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/050-nlp/080-grammars-parsing-and-morphological-processing/</guid><description>&lt;h1 id="grammars-parsing-and-morphological-processing">
 Grammars, Parsing, and Morphological Processing
 
 &lt;a class="anchor" href="#grammars-parsing-and-morphological-processing">#&lt;/a>
 
&lt;/h1>
&lt;p>Natural-language sentences are more than sequences of words. Their words form phrases, and the way those phrases are grouped determines the sentence&amp;rsquo;s structure and meaning.&lt;/p>
&lt;p>A grammar describes the structures that a language permits. A parser uses that grammar to discover the hidden structure of a particular sentence.&lt;/p>
&lt;h2 id="course-content">
 Course Content
 
 &lt;a class="anchor" href="#course-content">#&lt;/a>
 
&lt;/h2>
&lt;ul>
&lt;li>Grammars and sentence structure&lt;/li>
&lt;li>What makes a good grammar&lt;/li>
&lt;li>A bottom-up chart parser&lt;/li>
&lt;li>Probabilistic Context-Free Grammars&lt;/li>
&lt;li>Probabilistic CKY parsing of PCFGs&lt;/li>
&lt;li>Ways to learn PCFG rule probabilities&lt;/li>
&lt;li>Problems with PCFGs&lt;/li>
&lt;li>Improving PCFGs by splitting non-terminals and using lexicalised CFGs&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 why sentence structure is necessary for resolving ambiguity.&lt;/li>
&lt;li>Represent a grammar using terminals, non-terminals, productions, and a start symbol.&lt;/li>
&lt;li>Recognise the defining restriction of a Context-Free Grammar.&lt;/li>
&lt;li>Construct and interpret a simple parse tree.&lt;/li>
&lt;li>Compare top-down and bottom-up parsing.&lt;/li>
&lt;li>Explain how a chart prevents repeated parsing work.&lt;/li>
&lt;li>Distinguish active arcs, completed constituents, the agenda, and the chart.&lt;/li>
&lt;li>Explain morphological analysis and generation using finite-state models.&lt;/li>
&lt;/ul>
&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[&amp;#34;Sentence&amp;#34;] --&amp;gt; B[&amp;#34;Grammar: allowed structures&amp;#34;]
 B --&amp;gt; C[&amp;#34;Parser: search for structure&amp;#34;]
 C --&amp;gt; D[&amp;#34;Parse tree&amp;#34;]
 D --&amp;gt; E[&amp;#34;Interpretation&amp;#34;]

 style A fill:#E1F5FE
 style B fill:#C8E6C9
 style C fill:#FFF9C4
 style D fill:#EDE7F6
 style E fill:#E1F5FE
&lt;/pre>

&lt;h2 id="1-why-sentence-structure-matters-">
 1. Why Sentence Structure Matters ☆
 
 &lt;a class="anchor" href="#1-why-sentence-structure-matters-">#&lt;/a>
 
&lt;/h2>
&lt;p>Knowing the meanings of individual words is not enough to determine the meaning of a complete sentence. We must also know which words belong together.&lt;/p></description></item></channel></rss>