[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lojban] the myth of monoparsing




On 12/02/2015 16:10, Gleki Arxokuna wrote:

2015-02-12 18:00 GMT+03:00 v4hn <me@v4hn.de>:
Everything you proposed in this thread to make lojban "polyparse"
is about semantic analysis, not about parsing.

Adding polyparsing to Lojban is possible by removing some parts of its grammar and it has nothing to do with semantic analysis.
 

As for the "Fred saw a plane flying over Zurich" sentence, it's certainly possible to have a monoparse if we allow more than two branches per node, like the below:

sentence ← noun-clause finite-verb noun-clause verb-ing preposition noun-clause
(Here the node "sentence" has six branches.)

But I guess that a true (and useful) parse analysis should not allow more than two branches per node, so that for each word we know what other word it attaches to. As the -ing verb-form can either represent an adjectival present-participle (which attaches to a noun on its left) or an adjectival present-participle (which attaches to the verb, I think), it's not possible to produce a single *binary* parse tree.

Here's a sketchy binary+unary branching grammar:

sentence ← noun-phrase verb-clause
verb-clause ← verb-clause-2 adverbial-phrase
verb-clause-2 ← verb-phrase noun-phrase
verb-phrase ← verb-past
adverbial-phrase ← verb-ing preposition-clause
noun-phrase ← name | article noun | noun-phrase adjectival-present-participle-clause
adjectival-present-participle-clause ← adjectival-present-participle-clause preposition-clause | verb-ing
preposition-clause ← preposition noun-phrase
...

If I made no mistake, the above grammar can parse the Zurich sentence as
• (Fred [{saw <a plane>} {flying <over Zurich>}])  --  adverbial present participle interpretation
or as
• (Fred [saw {<a plane> <flying (over Zurich)>}])  --  adjectival present participle interpretation

So I guess that the relevant concept here is "binary parsing", that is, grouping the words so that each node contains no more than two child nodes at once.

Just my two cents.

mi'e la .ilmen. mu'o


--
You received this message because you are subscribed to the Google Groups "lojban" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lojban+unsubscribe@googlegroups.com.
To post to this group, send email to lojban@googlegroups.com.
Visit this group at http://groups.google.com/group/lojban.
For more options, visit https://groups.google.com/d/optout.