Documentation

Linglib.Syntax.DependencyGrammar.Valency

Valency frames #

This file defines valency frames over dependency graphs: slot data, standard frame schemas for the basic valences, the valency of a verb's lexical ArgumentFrame, read off the argument roles of its core arguments, and satisfaction of a frame by a position's dependents.

Main definitions #

Implementation notes #

Frames are a side table (Frames n), not part of the graph carrier: the frame is framework apparatus (like HPSG's ARG-ST), supplied alongside the graph by the consumers that reason about valency and populated from the lexical carrier (Valency.ofFrame of a verb's basic frame).

References #

Slot data #

A single valency slot, recording which relation fills it, the direction of the head with respect to the filler, and whether it must be filled.

  • depType : UD.DepRel

    The UD relation of the filler.

  • direction : HeadDirection

    The direction of the head with respect to the filler.

  • required : Bool

    Whether the slot must be filled.

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def DependencyGrammar.Valency.instDecidableEqSlot.decEq (x✝ x✝¹ : Slot) :
      Decidable (x✝ = x✝¹)
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[reducible, inline]

        The valency of a word is the list of dependent slots it requires or allows.

        Equations
        Instances For
          @[reducible, inline]
          abbrev DependencyGrammar.Frames (n : ℕ) :

          The per-position frame table supplied alongside a Graph n.

          Equations
          Instances For
            def DependencyGrammar.Frames.ofList {n : ℕ} (l : List (Fin n × Valency)) :

            A sparse frame table, in which positions not listed carry no frame.

            Equations
            Instances For

              Standard schemas #

              An intransitive verb takes its subject to the left.

              Equations
              Instances For

                A transitive verb takes its subject to the left and its object to the right.

                Equations
                Instances For

                  A ditransitive verb takes its subject to the left and its indirect object and object to the right.

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

                    A passive transitive verb takes its subject, the patient, to the left and an optional by-phrase to the right.

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

                      Valency of an argument frame #

                      The required slot of a core argument by its argument role. S and A are the subject, to the left of the head; P and T the object and R the indirect object, to its right.

                      Equations
                      Instances For

                        The valency of an argument frame has a slot for each core argument, by its argument role. Clausal and adpositional complements have none, since UD's clausal relations and obliques are not core arguments and Graph.SatisfiesFrames leaves them unconstrained.

                        Equations
                        Instances For

                          Argument-frame satisfaction #

                          def DependencyGrammar.Graph.fillersOf {n : ℕ} (g : Graph n) (v : Fin n) (rel : UD.DepRel) :
                          Finset (Fin n)

                          The dependents of v linked by relation rel.

                          Equations
                          Instances For
                            def DependencyGrammar.SatisfiesValency {n : ℕ} (g : Graph n) (v : Fin n) (val : Valency) :

                            The graph satisfies a valency at head v when the head has the slot's direction with respect to every filler of every slot, and required slots are filled.

                            Equations
                            Instances For
                              @[instance_reducible]
                              instance DependencyGrammar.instDecidableSatisfiesValency {n : ℕ} (g : Graph n) (v : Fin n) (val : Valency) :
                              Decidable (SatisfiesValency g v val)
                              Equations
                              • One or more equations did not get rendered due to their size.

                              Core argument relations governed by lexical frames. Deliberately the nominal core only — UD's clausal core relations (csubj, ccomp, xcomp) are licensed by clause-embedding frames, which Valency.ofFrame does not schematize.

                              Equations
                              Instances For
                                def DependencyGrammar.CoreArgsLicensed {n : ℕ} (g : Graph n) (v : Fin n) (val : Valency) :

                                Every core-argument dependent of v is licensed by a slot of val — the closed-world half of valency checking (SatisfiesValency only checks that required slots are filled).

                                Equations
                                Instances For
                                  @[instance_reducible]
                                  instance DependencyGrammar.instDecidableCoreArgsLicensed {n : ℕ} (g : Graph n) (v : Fin n) (val : Valency) :
                                  Decidable (CoreArgsLicensed g v val)
                                  Equations
                                  def DependencyGrammar.Graph.SatisfiesFrames {n : ℕ} (g : Graph n) (frames : Frames n) :

                                  Each verb's dependents satisfy its frame, with required slots filled in the right direction (SatisfiesValency) and no unlicensed core arguments (CoreArgsLicensed). Verbs without a frame are unconstrained.

                                  Equations
                                  Instances For
                                    @[instance_reducible]
                                    instance DependencyGrammar.instDecidableSatisfiesFrames {n : ℕ} (g : Graph n) (frames : Frames n) :
                                    Decidable (g.SatisfiesFrames frames)
                                    Equations
                                    • One or more equations did not get rendered due to their size.