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

(When|Where) is X born? #28

Closed Tpt closed 9 years ago

Tpt commented 10 years ago

Questions like http://ppp.pony.ovh/?lang=en&q=Where+is+Jean-Fran%C3%A7ois+Champollion+born%3F aren't well parsed by the NLP module. We should end with triple like (X, birth (date|place))

Ezibenroc commented 10 years ago

The only solution that I see is an other hardcoded map: (question word, verb) -> predicate. For instance, we would have

progval commented 10 years ago

Why “bear”?

Ezibenroc commented 10 years ago

This is the lemma for "born". to bear

Ezibenroc commented 10 years ago

(but I never used it, so I find it quite strange)

Tpt commented 10 years ago

Hum, this highlight the fact that we should maybe normalize verbs to their related nouns in order to get birth instead of bear and death instead of die. But it seems difficult.

If I were you (but it's only a first idea that may be not relevant) I would work in two steps:

VerbToNoun

example: bear -> birth

QuestionWordToPredicate

To go to "birth" with the questionWord "when" to "birth date"

questionToWord = {when: date, where:place}
wordsForQuestion = {when: [date, time, day, month, year,...], where:[place, location,...]}
if(not predicate contains one of wordsForQuestion[questionWord])
    predicate = predicate + ' ' + questionToWord[questionWord]

I believe this way will be more easy than doing a full hardcoded correspondence table.

Ezibenroc commented 10 years ago

Some info about VerbToNoun on StackOverflow I will think about it later.

yhamoudi commented 9 years ago

In progress: https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical/tree/connectors_processing

progval commented 9 years ago

What blocks you from using the algorithm given by @Tpt?

yhamoudi commented 9 years ago

It's in progress (actually it's finished but the data model needs to be fixed before merging the pull request). The algorithm is close to the idea of Tpt

progval commented 9 years ago

What pull request?

yhamoudi commented 9 years ago

not a pull request (not yet), a branch: https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical/tree/connectors_processing

yhamoudi commented 9 years ago

Fix in branch connectors_processing \o/