The k-gram cues of a form are the k-factors of the string padded with one boundary
symbol on each side, as JudiLing's make_cue_matrix computes them with grams = k.
- cues k w = List.kFactors k (boundary 2 w)
Used by cueVector
Docs / Processing / DiscriminativeLexicon / Coding
import Linglib.Processing.DiscriminativeLexicon.Coding · namespace DiscriminativeLexicon
This file defines how linguistic objects enter the discriminative lexicon, following chapters 4 and 5 of Heitmeier, Chuang and Baayen.
A form is a string of symbols. Its cues are the n-grams of the string padded with one
boundary symbol on each side (#a aa ap p#, #aa aap ap#), and its row of the form matrix C
is the indicator of those cues over the cue inventory, so C holds only ones and zeros. The
padding is one boundary symbol whatever the width, unlike the k − 1 symbols of strictly local
grammars (boundary), so the model's trigrams are not the 3-factors of subregular phonology. A
meaning is a multiset of atomic semantic primitives, a lexeme together with its inflectional
functions, and conceptualization builds its vector as the sum of the primitives' vectors, so
that a novel inflected word is conceptualized from known primitives. Conceptualization is
additive in the multiset by construction, which makes imputed meanings analogically regular
(isAnalogicallyRegular_imputed in Realization.lean).
cues k w: the k-gram cues of the string w.multiHot inv p: the indicator row over an inventory inv of the units satisfying p.cueVector k inv w: the row of C for w.conceptualize emb: the additive map from primitive multisets to meaning vectors.imputed σ ε: the meaning of a lexeme at a cell, the lexeme's vector plus the cell's.The k-gram cues of a form are the k-factors of the string padded with one boundary
symbol on each side, as JudiLing's make_cue_matrix computes them with grams = k.
Used by cueVector
The multiple-hot row over an inventory inv marks with 1 the units satisfying p.
Used by cueVector
Used in GahlBaayen2024
The row of the form matrix C for the form w is the indicator of its cues over the cue
inventory.
Built from ,
Used in GahlBaayen2024, HeitmeierChuangBaayen2026
Conceptualization sends a multiset of semantic primitives to the sum of the primitives' vectors, additively in the multiset.
Used by conceptualize_apply, conceptualize_pair, imputed
Built from
Conceptualizing a lexeme with one inflectional function gives the sum of their vectors, the imputed additive semantics of a paradigm cell (eq. 5.3).
Built from
The imputed semantics of a lexeme at a cell is conceptualized from the lexeme's vector and the inflectional function's vector (eq. 5.3; the constructed meaning-to-form route of Table 12.7, which §16.6 calls imputed embeddings for stems and exponents).
Built from
Used by imputed_apply
Used in Processing/DiscriminativeLexicon/Realization, HeitmeierChuangBaayen2026