Jul
10
2010

Parsing complex sentences

I wonder how many general purpose parsers are able to handle a sentence like:

I feel you and you feel me

The difficulty here is 2 folded: the you and the and. Is you a personal object or subject pronoun and what does the and combine. Basically, do we mean ‘I feel you’ and ‘you feel me’ or ‘I feel’ and ‘you and you feel me’.

Here’s what aici currently makes of it:

image

Oh, and it’s melting hot at the moment

tags: ,
posted in AICI, General by admin

Follow comments via the RSS Feed | Leave a comment | Trackback URL

2 Comments to "Parsing complex sentences"

  1. Victor Shulist wrote:

    I feel you and you feel me.

    By the rules of English grammar, this is a compound sentence, with the 2 sentences

    sentence1: I feel you
    sentence2: You feel me

    I’m not sure why you’d consider it to be [I feel] [you and you feel me].

    There would have to be a period after the [I feel]. Also, why would you have 2 subject nouns identical in the second sentence, you and you.

  2. admin wrote:

    Indeed, by the rules of English, there is only 1 way to interpret this sentence. However, the difficulty comes from the fact that the parser can also recognise something like: ‘you and I feel’ or ‘you and I feel and my sister and your brother don’t', ‘my and your car are black’,… . The point is that the parser can correctly figure out how ‘and’ is used in the sentence, what it should put together: at the level of the subject, the sentence,…. This isn’t always possible using parser generators like coco, bison,..
    I put up this example cause it is the furthest up the parse tree: at the level of the sentence. This also showed that the system can deal with multiple sub sentences in 1 big sentence.

Leave Your Comment

 
Powered by Wordpress and MySQL. Theme by openark.org