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 map from a verb's lexical ComplementType into them, 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 (a verb's complementType.valency).

References #

[Tes59] — Éléments de syntaxe structurale, source of the valency notion [Hud10] — An introduction to Word Grammar [Osb19] — A dependency grammar of English

Slot data #

Direction of a dependent relative to its head.

  • left : Dir

    The dependent precedes the head.

  • right : Dir

    The dependent follows the head.

Instances For
    def DependencyGrammar.instReprDir.repr :
    DirStd.Format
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[instance_reducible]
      Equations
      def DependencyGrammar.Dir.Admits {n : } :
      DirFin nFin nProp

      A dependent at position dep sits on side dir of the head at position head.

      Equations
      Instances For
        @[instance_reducible]
        instance DependencyGrammar.instDecidableAdmits {n : } (dir : Dir) (head dep : Fin n) :
        Decidable (dir.Admits head dep)
        Equations
        • One or more equations did not get rendered due to their size.

        A single valency slot: which relation fills it, on which side of the head, and whether it must be filled.

        • depType : UD.DepRel

          The UD relation of the filler.

        • dir : Dir

          Which side of the head the filler sits.

        • 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: the 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: positions not listed carry no frame.

                  Equations
                  Instances For

                    Standard schemas #

                    Intransitive verb: subject to the left.

                    Equations
                    Instances For

                      Transitive verb: subject left, object right.

                      Equations
                      Instances For

                        Ditransitive verb: subject left, indirect object right, object right.

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

                          Passive transitive: subject left (was patient), optional by-phrase right.

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

                            A verb's lexical complement type as a standard valency. Returns none for frames without a standard schema: clause-embedding types take xcomp/ccomp, not obj, and .np_pp has no fixture here.

                            Equations
                            Instances For

                              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: every filler of every slot sits on the slot's side of the head, 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.
                                  def DependencyGrammar.Graph.SatisfiesFrames {n : } (g : Graph n) (frames : Frames n) :

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

                                  Equations
                                  Instances For