Skip links
Main content

Parsing "Was Ada Lovelace a daughter of Lord Byron?"

vrijdag 22 juli 2011 21:54

For the parser I am trying to write I need a fresh sentence to parse every week or so. This week the sentence is

"Was Ada Lovelace a daughter of Lord Byron?"                     (I'm using Byron related sentences)

This is a so-called "Yes-No question" and its phrase structure is something like this:

S
+--- aux (was)
+--- NP (proper noun: Ada Lovelace)
+--- NP
       +--- NP (determiner: a, noun: daughter)
       +--- PP (preposition: of, proper noun: Lord Byron)

Simple, but there is a problem: the books I read on the subjects tell me that a yes-no-question has the structure:

S
+--- aux
+--- NP
+--- VP

So I thought i'd get me an authorative reference on the subject. There is one. It's called "A Comprehensive Grammar of the English Language". But it's expensive ($110.-) So I thought I'd see if I could find a second-hand copy. There weren't any cheap ones. But then I did find a xeroxed version of the book here. Great, now I could lookup if S -> aux NP NP was also allowed.

The reference doesn't say. But it does say that "Again as with negation, main verb BE functions as operator". Where operator equals aux(iliary). But if the word was is the auxilliary then there has to be a main verb as well. Except there isn't! So I guess that the main verb is implicit, and I though what word it could be. First I landed on identified which is close, but does make the sentence flow a little bit awkwardly.

And then it came to me, and that's why I wrote this piece, that the word is being:

"Was Ada Lovelace being a daughter of Lord Byron?"

Which yields:

S
+--- aux (was)
+--- NP (proper noun: Ada Lovelace)
+--- VP
       +--- verb (being)
       +--- NP
              +--- NP (determiner: a, noun: daughter)
              +--- PP (preposition: of, proper noun: Lord Byron)

This is all swell, but my parser doesn't read implicit words. So I will allow the S -> aux NP NP in my parser, and I will let it generate the verb being.

PS: If you are reading this and you know it is nonsense, please let me know (kindly), but you will have to provide a better alternative!

Labels
nlp

« Terug

Reacties op 'Parsing "Was Ada Lovelace a daughter of Lord Byron?"'

cheap oakley sunglasses
Geplaatst op: 26-06-2013 15:42 Quote
I want to to thank you for this great read!! I definitely enjoyed every little bit of it. I've got you saved as a favorite to check out new stuff you post.| cheap oakley sunglasses http://www.razzlewood.com/oakleysunglasses.html
red bottom shoes cyber monday 2013
Geplaatst op: 16-10-2013 16:10 Quote
333 Place the price of a $100 enjoy about $150 and potential consumers will flip away. If you are it authentic the painless gladness of the
<a href="http://ncgadmin.com/red-bottom-shoes-cyber-monday.html" >red bottom shoes cyber monday 2013</a>
red bottom shoes cyber monday 2013
cheap louis vuitton scarf
Geplaatst op: 19-10-2013 12:55 Quote
888 If easy methods to don saree is complex problem for you then in this article you'd probably find the hassle-free reply to this question.. She was attractive in her 20s, she's gorgeous now and she'll be gorgeous twenty years from now.
cheap louis vuitton scarf
louis vuitton mens wallet
Geplaatst op: 19-10-2013 16:16 Quote
888 If simple methods to have on saree is difficult concern for you personally then in this article you'd probably find the straightforward reply to this dilemma.. She was magnificent in her 20s, she's wonderful now and she'll be attractive 20 years from now.
louis vuitton mens wallet
louis vuitton large tote
Geplaatst op: 21-10-2013 13:16 Quote
888 If methods to have on saree is sophisticated question for you then listed here you should discover the straightforward respond to to this question.. She was beautiful in her 20s, she's beautiful now and she'll be beautiful twenty years from now.
louis vuitton large tote
ugg boots outlet clearance
Geplaatst op: 21-10-2013 16:03 Quote
888 If the right way to dress in saree is complicated issue for you then listed here you would locate the hassle-free reply to to this dilemma.. She was amazing in her 20s, she's beautiful now and she'll be beautiful twenty years from now.
ugg boots outlet clearance
collect rainwater
Geplaatst op: 19-11-2013 07:54 Quote
999 The creation of this new antitheft not simply stunning but additionally handy. She would not speak carats or value tags when demonstrating me a ring very similar towards just one Ponder bought which was developed by Precision Established.
collect rainwater
collect rainwater
Geplaatst op: 19-11-2013 08:09 Quote
999 The creation of the new antitheft not only amazing but will also effortless. She wouldn't communicate carats or cost tags at the same time exhibiting me a ring comparable on the a particular Ponder ordered which was designed by Precision Set.
collect rainwater
cheap atlanta falcons jerseys
Geplaatst op: 22-11-2013 05:27 Quote
999 The invention of the new antitheft not merely magnificent but will also hassle-free. She wouldn't discuss carats or selling price tags even as demonstrating me a hoop equivalent towards 1 Ponder purchased which was made by Precision Set.
cheap atlanta falcons jerseys
red bottom shoes men sale
Geplaatst op: 22-11-2013 05:32 Quote
999 This is a cologne built for men amongst the ages of 35 and fifty three, and will be worn throughout the daytime. I might continue to invest as long as potential chopping it up having a fellow geek, most of the even as not providing whatever.
red bottom shoes men sale
Nieuw bericht