ProjetPP / PPP-QuestionParsing-Grammatical

Question Parsing module for the PPP using a grammatical approch
GNU Affero General Public License v3.0
33 stars 11 forks source link

"who was Liz Taylor married to?" #114

Closed Tpt closed 9 years ago

Tpt commented 9 years ago

It outputs an intersection instead of the simple triple (Liz Taylor, husband, ?): http://askplatyp.us/?lang=en&q=who+was+Liz+Taylor+married+to%3F

yhamoudi commented 9 years ago

It's almost good since the first element of the intersection is (Liz Taylor, husband, ?). The problem comes from the dependency used by the stanford parser : married -xcomp-> to (i'm not sure it's a mistake from the stanford parser). Since to is a complement, we produce a second triple...

How to solve it:

@Ezibenroc If we want also to merge v -prep_x-> y into v x -prep-> y, how could we find the position of x into the initial sentence (x can contain several words, we need to find the position of each of them) ?

(please do such modifications directly on branch reverse_predicates)

Ezibenroc commented 9 years ago

I will have a look on Monday...

yhamoudi commented 9 years ago

Fixed https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical/commit/9fb72771c53863ba95e52c71a0aca4635f3001b1