2

A few small but related questions here. I'm looking at ways to define "sentence patterns", at least starting with English. That led me back to phrase structure grammars, which have nice and fairly intuitive parse trees.

enter image description here

Main question that I've been wondering about is if all possible sentences can have an intuitive parse tree. I get that sentences can have many parse trees depending on context and the way you look at the sentence. But even so, is it possible to always represent a sentence using this system?

Finally, where do you learn all the rules for the symbols used in parse trees, and what word is considered what part of speech, sort of thing? I would like to more deeply explore complex sentence structures using this phrase structure grammar paradigm. To answer the question in my head about there maybe not being a valid parse tree for some sentences, or at least one that makes intuitive sense.

(Tangent question, wondering if there are open source projects which generate the data model for these parse trees given a sentence, I have spent an hour looking but will look some more).

For clarity, I'm thinking what it would be like if you wrote down all the possible parse trees. Like for "mary had a little lamb":

S > NP VP
NP > N
N > Mary
VP > V NP
V > had
NP > DET NP
DET > a
NP > AdjP N
AdjP > ADJ
ADJ > little
N > lamb

But wondering what can go into what, and generally the details of what's possible. So that's where I'm going for now.

6
  • 1
    "All the rules" is an entire field (syntax).
    – Draconis
    Commented Nov 9, 2023 at 19:32
  • I at least found a list of 36 POS tags, but not the sentence-level tags. Commented Nov 9, 2023 at 20:01
  • 1
    All sentences can be parsed and so can utterances but then both can also be nonsense or gibberish. Everything depends on context, which you have to define...
    – Lambie
    Commented Nov 9, 2023 at 20:38
  • Abney 1995 demonstrates that every written sentence is multiply ambiguous, so there are certainly parses. Whether they're the correct parses for a human language is another question.
    – jlawler
    Commented Nov 9, 2023 at 22:40
  • It is not possible to assign a parse to every sentence that everyone finds to be intuitive. I don't think there is any sentence that has a universally-intuitive parse. If you're willing to settle for majority approval, and can define set who have voting rights, then maybe. Then there is the matter of how sentence trees relate to semantic interpretation.
    – user6726
    Commented Nov 10, 2023 at 1:09

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.