Is there parsing method which transforms sentence "Read words until current char is a period" to the following tree:
until - read words
...... - is a - current char
............... - period
I. e. treat "until" as a main word in this sentence?

asked Jul 28 '11 at 17:55

DSblizzard's gravatar image

DSblizzard
60458

edited Aug 02 '11 at 06:57

Alexandre%20Passos's gravatar image

Alexandre Passos ♦
2554154278421


One Answer:

The specific parse tree produced for an input depends more on the specific grammar, than on the parsing method, which I take to mean the grammar type (formalism), ie CFG, HPSG, dependency grammar, CCG or the like. If you just mean a specific parser, like the Charniak or Stanford, then I do not know, I would expect most to treat "read" as the head/root. Otherwise you can construct a grammar in any formalism to produce a tree like that, Although I expect most established grammars use "read" as the head, I think categorial or Montagovian grammars might be more likely to work the way you want, since they treat words as higher order functions, and it makes some sense to treat "until" as a function that takes an action and a condition as arguments, but I do not know if that represents current categorial or Montagovian thinking. You could try seeing what the OpenCCG/OpenNLP parser actually does or ask your question on their mailing lists.

answered Jul 28 '11 at 21:23

Daniel%20Mahler's gravatar image

Daniel Mahler
122631322

edited Jul 28 '11 at 21:53

Your answer
toggle preview

powered by OSQA

User submitted content is under Creative Commons: Attribution - Share Alike; Other things copyright (C) 2010, MetaOptimize LLC.