Documentation

Linglib.Theories.Syntax.DependencyGrammar.Coordination

Conjunction types

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[implicit_reducible]
      Equations
      def DepGrammar.Coordination.getConjuncts (t : DepTree) (headIdx : ) :
      List

      Get conjuncts of a head: words linked by conj edges from headIdx.

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

        Check that for every conj edge, the conjuncts have matching categories.

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

          For verbal conj edges, check that conjuncts have matching argument structures.

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

            Enhance a basic tree by propagating shared dependents from first conjunct to all other conjuncts. For each conj edge head→dep, propagates obj/nsubj/iobj edges from head to dep. Returns a DepGraph (multiple heads per word).

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

              "John and Mary sleep" - NP coordination. Words: John(0) and(1) Mary(2) sleep(3) Basic tree is sufficient — no shared deps needed.

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

                "John sleeps and Mary sleeps" - S coordination. Words: John(0) sleeps(1) and(2) Mary(3) sleeps(4)

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

                  "John sees and hears Mary" - VP coordination (basic tree). Words: John(0) sees(1) and(2) hears(3) Mary(4) Mary attaches as obj of sees only. Hears is conj of sees.

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

                    Enhanced graph for "John sees and hears Mary". Mary is obj of BOTH sees and hears — the shared dep is propagated.

                    Equations
                    Instances For

                      "the old and wise man" - Adjective coordination. Words: the(0) happy(1) and(2) smart(3) boy(4)

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

                        "John likes and Mary hates pizza" - Right Node Raising. Words: John(0) devours(1) and(2) Mary(3) devours(4) pizza(5) Pizza attaches to devours(1) only in the basic tree.

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

                          NP coordination has matching categories.

                          VP coordination has matching argument structures.

                          Adjective coordination has matching categories.

                          enhanceSharedDeps produces a graph with the missing obj edge from hears to Mary.

                          The basic tree does NOT have this edge.

                          Enhanced graph has more edges than the basic tree.

                          Enhanced graph violates unique-heads — it's genuinely a graph, not a tree. Mary (idx 4) has two incoming obj edges (from sees and hears).

                          The basic tree IS a tree (unique heads).

                          RNR enhancement propagates obj to second conjunct.

                          RNR enhanced graph violates unique-heads.