<?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 Neeraj Singh on Medium]]></title>
        <description><![CDATA[Stories by Neeraj Singh on Medium]]></description>
        <link>https://medium.com/@neerajsingh_86867?source=rss-115bace4687e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*xQN5fU4MNWAtaKIt.</url>
            <title>Stories by Neeraj Singh on Medium</title>
            <link>https://medium.com/@neerajsingh_86867?source=rss-115bace4687e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 21:46:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@neerajsingh_86867/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[Building Transition Based Dependency Parser using Deep Learning]]></title>
            <link>https://medium.com/@neerajsingh_86867/building-transition-based-dependency-parser-using-deep-learning-8cde35c24e85?source=rss-115bace4687e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8cde35c24e85</guid>
            <category><![CDATA[parsing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Neeraj Singh]]></dc:creator>
            <pubDate>Fri, 18 May 2018 07:24:32 GMT</pubDate>
            <atom:updated>2018-05-18T07:24:32.269Z</atom:updated>
            <content:encoded><![CDATA[<p>Given a sentence like “Economic news had little effect on financial markets.”, We have to parse this sentence and get dependency tree with edge between words and their dependency attributes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*2cFrhs9k2fvq6MqINoashA.png" /><figcaption>1. Dependency Parse of a sentence.</figcaption></figure><p>A transition based dependency parser consists of three main components, A buffer(B) for storing the sentence to be parsed , A stack(S) that is initially empty, And a set of edges(E) that are identified in the dependency tree, This set is initially empty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*rf-PcmxwvdnblDNDxw1Bhg.png" /><figcaption>2. Basic Transition-based Parser</figcaption></figure><p>In transition dependency parsing there is a transition from one configuration to another configuration. A configuration is defined as a tuple of S, B, E, Where S is the stack content, B is the Buffer content and E is the edges identified in dependency tree at that point of time. so for any sentence the initial sequence is {[root],[sentence],[]}. Based on the configuration there are fixed transitions possible. The transitions are leftArc , rightArc and Shift.These transitions will insert new edges into the dependency set and the configuration will change.</p><p><strong>Parsing Algorithm :<br></strong>Parse(w,o) <br>c←{[root],[sentence],[]} // initial configuration while(state not final) <br>t ← ORACLE(c); <br>c← t(c) ;<br> return DependencyGraph</p><p>Our main Objective is to learn the ORACLE that will predict the next transition given the current transition as the input.</p><p><strong>ORACLE Formalization</strong></p><p>ORACLE(configuration) = g(f(c)) , where f is a feature function that derives m- dimensional feature from the the configuration. g is a function that maps this feature to the all possible transitions. f : C→Y where Y is m-dimensional feature space , g : Y → T where T is all possible transitions.</p><p><strong>Training Data and Feature Extraction</strong></p><p>The training data available in dependency graph tree banks are in form of a sentence and its dependency tree (w, dependency Graph(DG)). So we have to convert this into a form so that we can learn the oracle. Here we will do reverse engineering to learn the oracle. Given (w, DG) , we can construct a transition sequence for w that will result in DG. The basic algorithm used in this step is this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*Kjubjrt-O3UjLnCkB-_kkA.png" /><figcaption>3. Algorithm to learn ORACLE</figcaption></figure><p>So for each training set (w,DG), starting from initial configuration where w is in the buffer , We will go from one transition to another using the above algorithm till We get DG. so in this process at every transition we have (configuration(c), transition(t)). We will convert this configuration to feature vector using function f : C → Y.</p><p><strong>Learning Function F(Features)</strong></p><p>Features of a configuration can be constructed from word position and word features form stack, buffer and current edge set. Address function is defined as the word whose features are present in the feature vector Ex B[0] top of the stack, B[1] the element after top of the stack etc.</p><p><strong>address functions :</strong></p><p>S[0], B[0],B[1], rdep[S[0]] ,ldep[S[0]] , rdep[B[0]], ldep[B[0]] ,etc<br>rdep[i] : right most child of i in dependency tree.<br>ldep[i] : leftmost child of i in dependency tree.<br><strong>Features</strong></p><p>Features Can be : word, PoS, dependency relation, Number of children in DG , etc.</p><p>For example sentence to be parsed is “ROOT Economic news had little effect on financial markets.”</p><h4><strong>Classifiers:</strong></h4><p>we can use different multi-class classifiers.</p><p>Neural network.<br>Decision tree.<br>SVM.<br>Memory table with a similarity function on configurations.</p><h4><strong>Accuracy:</strong></h4><p>Accuracy that we get using Neural Net is 87%. Now the best result using dense embedding in neural network is 92%.</p><p>References:</p><p><a href="https://www.cse.iitk.ac.in/users/hk/cs671/201718/details/depParse.pdf">https://www.cse.iitk.ac.in/users/hk/cs671/201718/</a></p><p><a href="https://web.stanford.edu/~jurafsky/slp3">https://web.stanford.edu/~jurafsky/slp3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cde35c24e85" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>