Documentation

Linglib.Processing.Lexical.Discriminative.Measures

DLM-derived semantic-support measures #

[BCSBB19] [GB24] [STB25] [HCB26]

The semantic support measures projected from a LinearDiscriminativeLexicon's production map, specialised to the FormVec/MeaningVec carriers.

Main declarations #

Semantic support — coordinate projection of production #

def Processing.Lexical.Discriminative.semSup {n d : } (D : LinearDiscriminativeLexicon (FormVec n) (MeaningVec d)) (s : MeaningVec d) (j : Fin n) :

Semantic support for form coordinate j from meaning vector s: the named binding for D.production s j ([STB25]; [GB24]'s per-triphone support).

Equations
Instances For
    def Processing.Lexical.Discriminative.semSupWord {n d : } (D : LinearDiscriminativeLexicon (FormVec n) (MeaningVec d)) (s : MeaningVec d) (js : List (Fin n)) :

    Word-level semantic support — the sum of semSup over a word's component form coordinates ([GB24]'s Semantic Support for Form; [STB25]'s SemSupWord).

    Equations
    Instances For

      semSup is linear in the meaning vector #

      Since D.production is a LinearMap, semSup D · j is a linear functional on the meaning space.

      @[simp]
      theorem Processing.Lexical.Discriminative.semSup_add {n d : } (D : LinearDiscriminativeLexicon (FormVec n) (MeaningVec d)) (s₁ s₂ : MeaningVec d) (j : Fin n) :
      semSup D (s₁ + s₂) j = semSup D s₁ j + semSup D s₂ j
      @[simp]
      theorem Processing.Lexical.Discriminative.semSup_smul {n d : } (D : LinearDiscriminativeLexicon (FormVec n) (MeaningVec d)) (c : ) (s : MeaningVec d) (j : Fin n) :
      semSup D (c s) j = c * semSup D s j
      @[simp]
      theorem Processing.Lexical.Discriminative.semSup_zero {n d : } (D : LinearDiscriminativeLexicon (FormVec n) (MeaningVec d)) (j : Fin n) :
      semSup D 0 j = 0

      semSupWord zero case #

      The general semSupWord_add / semSupWord_smul linearity is deferred until a consumer needs it.

      @[simp]
      theorem Processing.Lexical.Discriminative.semSupWord_zero {n d : } (D : LinearDiscriminativeLexicon (FormVec n) (MeaningVec d)) (js : List (Fin n)) :
      semSupWord D 0 js = 0