{"id":240,"date":"2018-12-26T15:44:03","date_gmt":"2018-12-26T23:44:03","guid":{"rendered":"http:\/\/linguamonium.com\/?p=240"},"modified":"2021-04-25T05:35:14","modified_gmt":"2021-04-25T05:35:14","slug":"o-syntax-tree-o-syntax-tree","status":"publish","type":"post","link":"https:\/\/linguamonium.com\/?p=240","title":{"rendered":"O Syntax Tree, O Syntax Tree!"},"content":{"rendered":"<p>Digital voice agents like Alexa, Siri, and Google Assistant are all the rage these days. But when we talk to our smart devices, are they actually \u201cunderstanding\u201d our speech in the same way that another human understands it? Take the command, \u201cFind flights from Chicago to New York on February 21.\u201d We can easily comprehend this sentence; our newborn brains were predisposed to acquire language, and we\u2019ve been using it ever since.<\/p>\n<p>Computers, on the other hand, cannot <em>acquire <\/em>language. They must be trained. In order to train them, computational linguists, other linguists, and engineers have broken language down into more manageable parts that can be tackled individually. <strong>Automatic speech recognition (ASR) <\/strong>deals with training machines to recognize speech (via acoustic properties, etc.), and convert that speech to text. Next, <strong>natural language processing (NLP) <\/strong>attempts to figure out what is meant by that text<a href=\"#_ftn1\" name=\"_ftnref1\">[1]<\/a>. An NLP system itself is composed of multiple modules<a href=\"#_ftn2\" name=\"_ftnref2\">[2]<\/a>, one of which will likely be a <strong>syntactic parser<\/strong>.<\/p>\n<p>Today we\u2019re going to delve into the parser component. Let\u2019s start with some syntactic basics!<\/p>\n<p>Syntax is the set of rules and processes governing sentence structure in any natural language. It involves things like word order, and <strong>constituents <\/strong>(words or phrases that form functional units). One of the most common ways to represent syntactic information (at least as of the 20<sup>th<\/sup> century) is with a syntax <strong>tree<\/strong>. Traditional syntax trees specify:<\/p>\n<ul>\n<li>The words of a phrase\/sentence<\/li>\n<li>Part of speech for each word, usually abbreviated\n<ul>\n<li>N (<em>noun<\/em>); V (<em>verb<\/em>); P (<em>preposition<\/em>); D or DET (<em>determiner<\/em>, a.k.a. article); A (<em>adjective<\/em>); etc.<\/li>\n<\/ul>\n<\/li>\n<li>Larger phrases, also abbreviated\n<ul>\n<li>S (<em>sentence<\/em>); NP (<em>noun phrase<\/em>); VP (<em>verb phrase<\/em>); etc.<\/li>\n<\/ul>\n<\/li>\n<li>Relationships between all of the words and phrases\n<ul>\n<li>These are hierarchical relationships that show how constituents combine into larger ones (or split into smaller ones, if starting from the opposite end of the tree)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Here\u2019s a tree diagram (specifically, a constituency tree) for the sentence, \u201cMy parakeet drinks mimosas in the morning\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-241 aligncenter\" src=\"https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/tree.png?resize=346%2C224&#038;ssl=1\" alt=\"tree\" width=\"346\" height=\"224\" srcset=\"https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/tree.png?w=1755&amp;ssl=1 1755w, https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/tree.png?resize=300%2C194&amp;ssl=1 300w, https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/tree.png?resize=1024%2C663&amp;ssl=1 1024w, https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/tree.png?resize=768%2C497&amp;ssl=1 768w, https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/tree.png?resize=1536%2C994&amp;ssl=1 1536w, https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/tree.png?resize=1568%2C1015&amp;ssl=1 1568w, https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/tree.png?w=1280&amp;ssl=1 1280w\" sizes=\"auto, (max-width: 346px) 100vw, 346px\" data-recalc-dims=\"1\" \/><\/p>\n<p>You can see that <em>my parakeet <\/em>forms a larger chunk which is a noun phrase, <em>in the morning <\/em>forms a larger chunk which is a prepositional phrase, <em>drinks mimosas in the morning <\/em>forms an even larger chunk which is a verb phrase, and both the NP and VP combine to form the largest chunk, a full sentence S. Remember that syntax focuses on phrasal order and structure, not meaning or context \u2013 so it can\u2019t tell us why on earth you\u2019re feeding boozy orange juice to your pet bird.<\/p>\n<p>Onto the parsing! Very generally, a parser is a piece of software (often a trained machine learning model) that takes input text, and outputs a parse tree or similar structural representation, based on syntactic rules and statistics learned from its training data.<\/p>\n<p>Syntactic parsers include a component called a <strong>Context-Free Grammar<\/strong>, which has:<\/p>\n<ol>\n<li>A set of <strong><a href=\"https:\/\/en.wikipedia.org\/wiki\/Terminal_and_nonterminal_symbols\" target=\"_blank\" rel=\"noopener\">non-terminal<\/a><\/strong> symbols \u2013 abbreviations for language constituents (lexical parts of speech and phrasal types):<\/li>\n<\/ol>\n<p style=\"padding-left: 60px;\">{S, NP, VP, PP, D, N, A\u2026}<\/p>\n<ol start=\"2\">\n<li>A set of <strong>terminal <\/strong>symbols \u2013 words of the phrase\/sentence:<\/li>\n<\/ol>\n<p style=\"padding-left: 60px;\">{drinks, parakeet, mimosas, morning, my, in, the}<\/p>\n<ol start=\"3\">\n<li>A set of rules like:<\/li>\n<\/ol>\n<p style=\"padding-left: 60px;\">S \u2192\u00a0NP VP\u00a0 (a sentence S is composed of a noun phrase NP and verb phrase VP)<\/p>\n<p style=\"padding-left: 60px;\">NP \u2192\u00a0D N\u00a0 (a noun phrase NP is composed of a determiner D and a noun N)<\/p>\n<p style=\"padding-left: 60px;\">VP \u2192\u00a0VP PP\u00a0 (etc.)<\/p>\n<p style=\"padding-left: 60px;\">PP \u2192\u00a0P NP<\/p>\n<ol start=\"4\">\n<li>A start symbol: S<\/li>\n<\/ol>\n<p>The parser starts at S, and applies its rules successively, until it arrives at the terminal symbols. The resulting parse is the labeled relationships connecting those terminals (i.e. words).<\/p>\n<p>There are two main kinds of syntactic parsers: <strong>dependency<\/strong> and <strong>constituency<\/strong>. To keep this post to a reasonable length, I\u2019ll focus on dependency only, but constituency parsers output structures similar to the parakeet tree above<a href=\"#_ftn3\" name=\"_ftnref3\">[3]<\/a>. A dependency parser builds a tree for each input sentence by starting with a sentence <strong>root <\/strong>(usually the main verb), and assigning a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Head_(linguistics)\" target=\"_blank\" rel=\"noopener\">head<\/a> word to each word, until it gets to the end of the sentence. (Heads link to <strong>dependents<\/strong>.) When it\u2019s done, each word has at least one branch, or relationship, with another word. The parser also characterizes each word-word relationship. These are things like: nominal subject of a verb (\u201cnsubj\u201d); object of a verb or a preposition (\u201cdobj\u201d and \u201cpobj,\u201d respectively); conjunction (\u201ccc\u201d for the conjunction word, and \u201cconj\u201d for the elements being conjoined); determiner (\u201cdet\u201d); and adverbial modifier (\u201cadvmod\u201d).<\/p>\n<p>A visualized example will probably help. Taking that same sentence, \u201cMy parakeet drinks mimosas in the morning,\u201d a visualization of the dependency parse might look like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-242\" src=\"https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/displacy_parse_parakeet_drinks.png?resize=640%2C142&#038;ssl=1\" alt=\"displacy_parse_parakeet_drinks\" width=\"640\" height=\"142\" srcset=\"https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/displacy_parse_parakeet_drinks.png?w=1446&amp;ssl=1 1446w, https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/displacy_parse_parakeet_drinks.png?resize=300%2C66&amp;ssl=1 300w, https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/displacy_parse_parakeet_drinks.png?resize=1024%2C227&amp;ssl=1 1024w, https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/displacy_parse_parakeet_drinks.png?resize=768%2C170&amp;ssl=1 768w, https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/displacy_parse_parakeet_drinks.png?w=1280&amp;ssl=1 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/p>\n<p>Can you spot the root, or main verb? It\u2019s the one without any arrows going towards it: <em>drinks<\/em>. The parser then finds the subject of <em>drinks<\/em>, which is <em>parakeet<\/em>, and labels that relationship \u201cnsubj.\u201d It finds <em>mimosas <\/em>as the direct object of <em>drinks<\/em>, and labels it \u201cdobj.\u201d And so on and so forth.<\/p>\n<p>Let\u2019s look at another example, for a dollop of variety. Here is \u201cMr. Vanderloop had smiled and said hello\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-243\" src=\"https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/displacy_parse_vanderloop.png?resize=640%2C136&#038;ssl=1\" alt=\"displacy_parse_vanderloop\" width=\"640\" height=\"136\" srcset=\"https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/displacy_parse_vanderloop.png?w=1455&amp;ssl=1 1455w, https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/displacy_parse_vanderloop.png?resize=300%2C64&amp;ssl=1 300w, https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/displacy_parse_vanderloop.png?resize=1024%2C218&amp;ssl=1 1024w, https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/displacy_parse_vanderloop.png?resize=768%2C164&amp;ssl=1 768w, https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/displacy_parse_vanderloop.png?w=1280&amp;ssl=1 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/p>\n<p>In this one, the past participle <em>smiled <\/em>is the root\/main verb, which has multiple dependents: its subject <em>Vanderloop<\/em>, its auxiliary (a.k.a. \u201chelping verb\u201d) <em>had<\/em>, its conjunction <em>and<\/em>, and the other verb with which it conjoins, <em>said<\/em>. The subject <em>Vanderloop <\/em>has a dependent <em>Mr.<\/em>, with which it forms a compound (proper) noun; <em>said<\/em>\u2019s dependent is the interjection <em>hello<\/em>.<\/p>\n<p>How about our sentence from the beginning, \u201cFind flights from Chicago to New York on February 21\u201d? How might it be parsed? (You can check your hypotheses by typing the sentence into an <a href=\"https:\/\/explosion.ai\/demos\/displacy\" target=\"_blank\" rel=\"noopener\">interactive demo of the displaCy dependency visualizer<\/a>, from which the visualizations above also came<a href=\"#_ftn4\" name=\"_ftnref4\">[4]<\/a>.) Something to keep in mind here is that English imperative structure leaves the subject \u2013 whoever is being addressed \u2013 implicit.<\/p>\n<p>A slight aside: I\u2019ve chosen simple examples for demonstration, but parsing gets decidedly complicated when input sentences are themselves complicated. Questions, subordinate clauses, coordination (or all three: \u201cWhat\u2019s the name of the movie where the guy drives a flying taxi and saves the human race from aliens?\u201d), and structurally ambiguous sentences (\u201cThe horse raced past the barn fell\u201d) get tricky quickly.<\/p>\n<p>So now we have some parsed output. How is this structured, annotated data useful? Well, one thing you can do with these word relations is identify noun phrases. Identifying noun phrases across sentences helps with another step in the NLP pipeline called <strong>Named Entity Recognition<\/strong>, or <strong>NER<\/strong>. NER tries to recognize nouns\/noun phrases (names, places, dates, etc.) and label them with categories of concepts from the real world. In our <em>flights <\/em>example, \u201cChicago\u201d and \u201cNew York\u201d should get tagged with some label like CITY or GEOGRAPHIC LOCALE, and \u201cFebruary 21\u201d should get tagged with DATE. Once a text has been automatically annotated for such named entities, information about those entities can then be pulled from a knowledge base (say, Wikipedia).<\/p>\n<p>Having parts of speech and word relations also makes it easier to match up the specifics of a given user command (e.g. \u201cText mom saying I\u2019ll call tonight,\u201d or \u201cShow popular Thai restaurants near me\u201d) with slightly more generalized intents (e.g. <em>Send text<\/em> or <em>Get restaurants<\/em>); machine models can start learning how words typically pattern across the main verb and direct object positions for various commands. Code then uses the more generalized intent to fulfill that request on a device \u2013 be it smartphone, tablet, or home speaker. \u201cFind flights from Chicago to New York on February 21\u201d would hopefully be matched with a more general <em>Get flights <\/em>intent, and the particular noun phrases could be passed to fields for origin, destination, and date.<\/p>\n<p style=\"padding-left: 300px;\">* * * * *<\/p>\n<p>Before leaving you to your holiday leftovers, I\u2019d like to reiterate that syntactic parsing is only one step in an NLP system. Its parses don\u2019t tell us much about the actual semantics of the linguistic input. Language meaning, however, is a whole other ball of wax, best left for the new year\u2026<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"#_ftnref1\" name=\"_ftn1\">[1]<\/a> There is often terminological confusion between <em>NLP <\/em>and <em>NLU <\/em>(natural language understanding). See <a href=\"https:\/\/www.google.com\/search?q=nlu+vs+nlp&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ved=0ahUKEwin3Yfu-rjfAhUKU98KHZUoC_cQ_AUIDygC&amp;biw=1502&amp;bih=734&amp;dpr=1.25#imgrc=q0Q2iO7SiGj6dM:\" target=\"_blank\" rel=\"noopener\">this graphic<\/a> for one common breakdown, although I\u2019ve heard the terms used interchangeably as well.<\/p>\n<p><a href=\"#_ftnref2\" name=\"_ftn2\">[2]<\/a> If you\u2019re interested to learn about other NLP steps, read this accessible post, <a href=\"https:\/\/medium.com\/@ageitgey\/natural-language-processing-is-fun-9a0bff37854e\" target=\"_blank\" rel=\"noopener\">Natural Language Processing is Fun!<\/a><\/p>\n<p><a href=\"#_ftnref3\" name=\"_ftn3\">[3]<\/a> You can also play around with this interactive demo from Stanford CoreNLP, <a style=\"outline-width: 0 !important;\" href=\"http:\/\/corenlp.run\" target=\"_blank\" rel=\"noopener\">http:\/\/corenlp.run<\/a>. In the second \u201cAnnotations\u201d field dropdown, make sure you have \u201cconstituency parse\u201d selected.<\/p>\n<p><a href=\"#_ftnref4\" name=\"_ftn4\">[4]<\/a> The visualizer is from the creators of spaCy, an awesome open-source NLP library in Python; a dependency parser is one of its components.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Digital voice agents like Alexa, Siri, and Google Assistant are all the rage these days. But when we talk to our smart devices, are they actually \u201cunderstanding\u201d our speech in the same way that another human understands it? Take the command, \u201cFind flights from Chicago to New York on February 21.\u201d We can easily comprehend&#8230;<\/p>\n","protected":false},"author":1,"featured_media":245,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[20,30],"tags":[58,67,70,92,128,137],"class_list":["post-240","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nlu-nlp-ml-ai","category-syntax-morphology","tag-computational-linguistics","tag-dependency-trees","tag-digital-voice-assistants","tag-intents","tag-ner","tag-parsing"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>O Syntax Tree, O Syntax Tree! - Linguamonium<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linguamonium.com\/?p=240\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"O Syntax Tree, O Syntax Tree! - Linguamonium\" \/>\n<meta property=\"og:description\" content=\"Digital voice agents like Alexa, Siri, and Google Assistant are all the rage these days. But when we talk to our smart devices, are they actually \u201cunderstanding\u201d our speech in the same way that another human understands it? Take the command, \u201cFind flights from Chicago to New York on February 21.\u201d We can easily comprehend...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linguamonium.com\/?p=240\" \/>\n<meta property=\"og:site_name\" content=\"Linguamonium\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-26T23:44:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-25T05:35:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linguamonium.com\/wp-content\/uploads\/2018\/12\/how_lovely.png\" \/>\n\t<meta property=\"og:image:width\" content=\"994\" \/>\n\t<meta property=\"og:image:height\" content=\"289\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"hannah\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@linguamonium\" \/>\n<meta name=\"twitter:site\" content=\"@linguamonium\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"hannah\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/linguamonium.com\/?p=240#article\",\"isPartOf\":{\"@id\":\"https:\/\/linguamonium.com\/?p=240\"},\"author\":{\"name\":\"hannah\",\"@id\":\"https:\/\/linguamonium.com\/#\/schema\/person\/f6a9c49248cb623f9a6061aaacff0238\"},\"headline\":\"O Syntax Tree, O Syntax Tree!\",\"datePublished\":\"2018-12-26T23:44:03+00:00\",\"dateModified\":\"2021-04-25T05:35:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/linguamonium.com\/?p=240\"},\"wordCount\":1430,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/linguamonium.com\/#\/schema\/person\/f6a9c49248cb623f9a6061aaacff0238\"},\"keywords\":[\"computational linguistics\",\"dependency trees\",\"digital voice assistants\",\"intents\",\"ner\",\"parsing\"],\"articleSection\":[\"NLU\/NLP\/ML\/AI\",\"Syntax &amp; Morphology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/linguamonium.com\/?p=240#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/linguamonium.com\/?p=240\",\"url\":\"https:\/\/linguamonium.com\/?p=240\",\"name\":\"O Syntax Tree, O Syntax Tree! - Linguamonium\",\"isPartOf\":{\"@id\":\"https:\/\/linguamonium.com\/#website\"},\"datePublished\":\"2018-12-26T23:44:03+00:00\",\"dateModified\":\"2021-04-25T05:35:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/linguamonium.com\/?p=240#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/linguamonium.com\/?p=240\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/linguamonium.com\/?p=240#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/linguamonium.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"O Syntax Tree, O Syntax Tree!\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/linguamonium.com\/#website\",\"url\":\"https:\/\/linguamonium.com\/\",\"name\":\"Linguamonium\",\"description\":\"A tumult of linguistic musings\",\"publisher\":{\"@id\":\"https:\/\/linguamonium.com\/#\/schema\/person\/f6a9c49248cb623f9a6061aaacff0238\"},\"alternateName\":\"Linguamo\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/linguamonium.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/linguamonium.com\/#\/schema\/person\/f6a9c49248cb623f9a6061aaacff0238\",\"name\":\"hannah\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/linguamonium.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/linguamonium.com\/wp-content\/uploads\/2018\/06\/cropped-dummeh-babboh-2-1.png\",\"contentUrl\":\"https:\/\/linguamonium.com\/wp-content\/uploads\/2018\/06\/cropped-dummeh-babboh-2-1.png\",\"width\":512,\"height\":512,\"caption\":\"hannah\"},\"logo\":{\"@id\":\"https:\/\/linguamonium.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/linguamonium.com\",\"www.linkedin.com\/in\/hannah-vanbrunt\",\"https:\/\/twitter.com\/linguamonium\"],\"url\":\"https:\/\/linguamonium.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"O Syntax Tree, O Syntax Tree! - Linguamonium","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linguamonium.com\/?p=240","og_locale":"en_US","og_type":"article","og_title":"O Syntax Tree, O Syntax Tree! - Linguamonium","og_description":"Digital voice agents like Alexa, Siri, and Google Assistant are all the rage these days. But when we talk to our smart devices, are they actually \u201cunderstanding\u201d our speech in the same way that another human understands it? Take the command, \u201cFind flights from Chicago to New York on February 21.\u201d We can easily comprehend...","og_url":"https:\/\/linguamonium.com\/?p=240","og_site_name":"Linguamonium","article_published_time":"2018-12-26T23:44:03+00:00","article_modified_time":"2021-04-25T05:35:14+00:00","og_image":[{"width":994,"height":289,"url":"https:\/\/linguamonium.com\/wp-content\/uploads\/2018\/12\/how_lovely.png","type":"image\/png"}],"author":"hannah","twitter_card":"summary_large_image","twitter_creator":"@linguamonium","twitter_site":"@linguamonium","twitter_misc":{"Written by":"hannah","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linguamonium.com\/?p=240#article","isPartOf":{"@id":"https:\/\/linguamonium.com\/?p=240"},"author":{"name":"hannah","@id":"https:\/\/linguamonium.com\/#\/schema\/person\/f6a9c49248cb623f9a6061aaacff0238"},"headline":"O Syntax Tree, O Syntax Tree!","datePublished":"2018-12-26T23:44:03+00:00","dateModified":"2021-04-25T05:35:14+00:00","mainEntityOfPage":{"@id":"https:\/\/linguamonium.com\/?p=240"},"wordCount":1430,"commentCount":3,"publisher":{"@id":"https:\/\/linguamonium.com\/#\/schema\/person\/f6a9c49248cb623f9a6061aaacff0238"},"keywords":["computational linguistics","dependency trees","digital voice assistants","intents","ner","parsing"],"articleSection":["NLU\/NLP\/ML\/AI","Syntax &amp; Morphology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linguamonium.com\/?p=240#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linguamonium.com\/?p=240","url":"https:\/\/linguamonium.com\/?p=240","name":"O Syntax Tree, O Syntax Tree! - Linguamonium","isPartOf":{"@id":"https:\/\/linguamonium.com\/#website"},"datePublished":"2018-12-26T23:44:03+00:00","dateModified":"2021-04-25T05:35:14+00:00","breadcrumb":{"@id":"https:\/\/linguamonium.com\/?p=240#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linguamonium.com\/?p=240"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/linguamonium.com\/?p=240#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linguamonium.com\/"},{"@type":"ListItem","position":2,"name":"O Syntax Tree, O Syntax Tree!"}]},{"@type":"WebSite","@id":"https:\/\/linguamonium.com\/#website","url":"https:\/\/linguamonium.com\/","name":"Linguamonium","description":"A tumult of linguistic musings","publisher":{"@id":"https:\/\/linguamonium.com\/#\/schema\/person\/f6a9c49248cb623f9a6061aaacff0238"},"alternateName":"Linguamo","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linguamonium.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/linguamonium.com\/#\/schema\/person\/f6a9c49248cb623f9a6061aaacff0238","name":"hannah","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linguamonium.com\/#\/schema\/person\/image\/","url":"https:\/\/linguamonium.com\/wp-content\/uploads\/2018\/06\/cropped-dummeh-babboh-2-1.png","contentUrl":"https:\/\/linguamonium.com\/wp-content\/uploads\/2018\/06\/cropped-dummeh-babboh-2-1.png","width":512,"height":512,"caption":"hannah"},"logo":{"@id":"https:\/\/linguamonium.com\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/linguamonium.com","www.linkedin.com\/in\/hannah-vanbrunt","https:\/\/twitter.com\/linguamonium"],"url":"https:\/\/linguamonium.com\/?author=1"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/linguamonium.com\/wp-content\/uploads\/2018\/12\/how_lovely.png?fit=994%2C289&ssl=1","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/linguamonium.com\/index.php?rest_route=\/wp\/v2\/posts\/240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linguamonium.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linguamonium.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linguamonium.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linguamonium.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=240"}],"version-history":[{"count":2,"href":"https:\/\/linguamonium.com\/index.php?rest_route=\/wp\/v2\/posts\/240\/revisions"}],"predecessor-version":[{"id":520,"href":"https:\/\/linguamonium.com\/index.php?rest_route=\/wp\/v2\/posts\/240\/revisions\/520"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linguamonium.com\/index.php?rest_route=\/wp\/v2\/media\/245"}],"wp:attachment":[{"href":"https:\/\/linguamonium.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linguamonium.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linguamonium.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}