Documentation

Linglib.Theories.Syntax.DependencyGrammar.Core.Basic

A dependency: directed edge from head to dependent. Uses UD.DepRel for the relation label.

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

        A dependency tree for a sentence.

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

            An enhanced dependency graph: like DepTree but allows multiple heads per word. Relaxes the unique-heads constraint.

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

                Every DepTree is trivially a DepGraph.

                Equations
                Instances For
                  inductive DepGrammar.Dir :

                  Direction of a dependent relative to head.

                  Instances For
                    Equations

                    A single argument slot in an argument structure.

                    Instances For
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        def DepGrammar.instDecidableEqArgSlot.decEq (x✝ x✝¹ : ArgSlot) :
                        Decidable (x✝ = x✝¹)
                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For

                          Argument structure: what dependents a word requires/allows.

                          Instances For

                            Intransitive verb: subject to the left

                            Equations
                            Instances For

                              Transitive verb: subject left, object right

                              Equations
                              • One or more equations did not get rendered due to their size.
                              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

                                    Map Valence to the corresponding standard DG argument structure. Returns none for valences without a standard frame (clausal, copular, dative, locative).

                                    Equations
                                    Instances For

                                      Check if every word except root has exactly one head.

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

                                        Check for cycles: no word is its own ancestor.

                                        Equations
                                        Instances For
                                          def DepGrammar.isAcyclic.follow (t : DepTree) (current : ) (visited : List ) (fuel : ) :
                                          Equations
                                          Instances For

                                            Bundled well-formedness: unique heads + valid index bounds. Collects the three hypotheses that most dominance/planarity theorems need.

                                            Instances For

                                              Check subject-verb number agreement.

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

                                                Check determiner-noun number agreement.

                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For
                                                  def DepGrammar.countDepsOfType (t : DepTree) (headIdx : ) (dtype : UD.DepRel) :

                                                  Count dependents of a given type for a head.

                                                  Equations
                                                  Instances For

                                                    Check if verb has correct argument structure.

                                                    Equations
                                                    • One or more equations did not get rendered due to their size.
                                                    Instances For
                                                      def DepGrammar.mkSVTree (subj verb : Word) :

                                                      Create a simple SV tree: subject -> verb.

                                                      Equations
                                                      Instances For
                                                        def DepGrammar.mkSVOTree (subj verb obj : Word) :

                                                        Create a simple SVO tree: subject -> verb <- object.

                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        Instances For
                                                          def DepGrammar.mkDetNVTree (det noun verb : Word) :

                                                          Create Det-N-V tree: det -> noun -> verb.

                                                          Equations
                                                          • One or more equations did not get rendered due to their size.
                                                          Instances For
                                                            def DepGrammar.mkDitransTree (subj verb iobj obj : Word) :

                                                            Create a ditransitive tree: subj -> verb <- iobj <- obj.

                                                            Equations
                                                            • One or more equations did not get rendered due to their size.
                                                            Instances For
                                                              def DepGrammar.satisfiesArgStr (t : DepTree) (headIdx : ) (argStr : ArgStr) :

                                                              Check if a dependency tree satisfies an argument structure

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