Documentation

Linglib.Theories.Syntax.DependencyGrammar.LongDistance

What type of element is missing in the gap

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      SLASH feature: tracks what's missing V/NP means "verb phrase missing a noun phrase"

      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          Equations
          Instances For

            Island constraint types

            Instances For
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                Check if a position is inside an island (simplified). Works on a DepTree directly.

                Equations
                Instances For

                  Validate that no extraction site is inside an island. Takes explicit filler-gap pairs as (fillerIdx, gapHostIdx, gapType).

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def DepGrammar.LongDistance.fillGap (t : DepTree) (fillerIdx gapHostIdx : ) (gapType : GapType) :

                    Fill a gap by adding an argument edge to the enhanced graph. The fillerIdx word becomes a dependent of gapHostIdx with the relation corresponding to gapType.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      Fill multiple gaps at once.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        def DepGrammar.LongDistance.getSLASH (basic : DepTree) (enhanced : DepGraph) (nodeIdx : ) :

                        Get SLASH feature at a node by comparing basic tree vs enhanced graph. If the enhanced graph has an argument edge to a word that the basic tree doesn't, that word has a SLASH feature.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For

                          A long-distance dependency tree is well-formed if:

                          1. Structural constraints (unique heads, acyclicity, projectivity, agreement)
                          2. No island violations
                          3. Fillers are wh-words, fronted, or relative clause heads Note: checkVerbSubcat is omitted because LD trees inherently have argument gaps (the whole point of long-distance dependencies).
                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For

                            "What did John see?" - Object wh-question (basic tree). Words: what(0) did(1) John(2) see(3) In UD, the wh-word attaches as obj of the main verb.

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For

                              "Who saw Mary?" - Subject wh-question (no gap needed).

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For

                                "Who did John see?" - Object wh-question with "who".

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For

                                  "the book that John read" - Object relative clause (basic tree). Words: the(0) book(1) that(2) John(3) read(4) In UD, the relative clause attaches via acl from head noun to RC verb. The gap (book as obj of read) is implicit.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For

                                    "the book that John gave Mary" - Object relative with ditransitive.

                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For

                                      "John thinks that Mary sleeps" - That-complement (no gap).

                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For

                                        "John thinks Mary sleeps" - Bare complement (that-omission, no gap).

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For

                                          "John wonders if Mary sleeps" - If-complement (no gap).

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For

                                            "John wonders what Mary saw" - Embedded wh-question. Words: john(0) wonder(1) what(2) mary(3) sees(4)

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For

                                              Object wh-questions have wh-word at index 0.

                                              Subject wh-questions don't need gaps (empty gap list).

                                              Enhanced graph for relative clause has the filled gap edge.

                                              The basic tree of "the book that John read" does NOT have this obj edge.

                                              Enhanced graph violates unique-heads (book has edges from both det and obj).

                                              SLASH derivation: book (1) gets an obj SLASH from comparing basic vs enhanced.