Documentation

Linglib.Theories.Semantics.Probabilistic.SDS.Examples

Concepts for "bat"

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

      Concepts for "star"

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

          Concepts for "port"

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

              A disambiguation scenario with selectional and scenario constraints

              • word : String

                Name of the ambiguous word

              • context : String

                Context sentence

              • selectional : C

                Selectional constraint (from predicate)

              • scenario : C

                Scenario constraint (from frame/context words)

              • concepts : List C

                Support (list of concepts)

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

                Example 1: "A bat was sleeping" #

                Context: The verb SLEEP provides a strong selectional preference.

                Constraints:

                Prediction: ANIMAL wins because selectional preference is strong.

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

                  Worked Computation #

                  Step 1: Unnormalized posteriors

                  Step 2: Partition function

                  Step 3: Normalized posteriors

                  Result: Strong preference for ANIMAL (95%)

                  Example 2: "A player was holding a bat" #

                  Context: The word "player" activates a SPORTS scenario. The verb HOLD has weak selectional preference (both concepts are holdable).

                  Constraints:

                  Prediction: EQUIPMENT wins because scenario constraint is strong and selectional is weak.

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

                    Worked Computation #

                    Step 1: Unnormalized posteriors

                    Step 2: Partition function

                    Step 3: Normalized posteriors

                    Result: Strong preference for EQUIPMENT (93%)

                    Key observation: Even though HOLD doesn't strongly select for equipment, the SPORTS scenario from "player" tips the balance decisively.

                    Example 3: "The astronomer married the star" #

                    Context: Competing constraints create a pun/zeugma reading.

                    Constraints:

                    Prediction: TIE → pun/zeugma reading emerges.

                    This is the signature example from the paper showing how conflicting constraints predict pragmatic ambiguity.

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

                      Worked Computation #

                      Step 1: Unnormalized posteriors

                      Step 2: Partition function

                      Step 3: Normalized posteriors

                      Result: Perfect tie (50-50)

                      Key observation: When selectional and scenario constraints have equal strength but opposite preferences, we get a tie. This predicts:

                      1. Pun reading (both meanings simultaneously)
                      2. Zeugma effect (semantic clash)
                      3. Garden path potential
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For

                        Example 4: "The sailor liked the port" #

                        Context: Both "sailor" (activates NAUTICAL scenario) and "port" (ambiguous between harbor/wine/computer) need disambiguation.

                        This shows how scenario constraints propagate: "sailor" activates NAUTICAL which then disambiguates "port".

                        Constraints for "port":

                        Prediction: HARBOR wins, WINE is plausible, COMPUTER unlikely.

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

                          Worked Computation #

                          Step 1: Unnormalized posteriors

                          Step 2: Partition function

                          Step 3: Normalized posteriors

                          Result: HARBOR (70%), WINE (25%), COMPUTER (5%)

                          Key observation: With a neutral predicate (LIKE), the scenario constraint from "sailor" does all the disambiguation work. WINE remains plausible due to cultural association.

                          Example 5: "The coach told the star to play" #

                          Context: Multiple words contribute to the scenario:

                          This shows how constraints from multiple words combine.

                          Constraints for "star":

                          Prediction: CELEBRITY wins strongly (both constraints agree).

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

                            Worked Computation #

                            Step 1: Unnormalized posteriors

                            Step 2: Partition function

                            Step 3: Normalized posteriors

                            Result: CELEBRITY wins decisively (98.7%)

                            Key observation: When selectional and scenario constraints agree, they reinforce each other multiplicatively, leading to very confident disambiguation.

                            Example 6: Varying Constraint Strengths #

                            This example shows how the RATIO of constraint strengths matters.

                            Consider "The child saw the bat":

                            Parameterized bat disambiguation varying scenario strength

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

                              Varying Scenario Strength #

                              Scenario StrengthP(ANIMAL)P(EQUIPMENT)Interpretation
                              0.5 (neutral)0.500.50Ambiguous
                              0.60.600.40Slight animal
                              0.70.700.30Prefer animal
                              0.80.800.20Strong animal

                              With neutral selectional constraint (0.5/0.5), the scenario constraint directly determines the posterior.

                              Example 7: Complete Analysis of "marry a star" #

                              The paper analyzes different contexts for "marry a star":

                              1. Neutral context: "Someone married a star"

                                • Selectional dominates → CELEBRITY
                              2. Astronomy context: "The astronomer married the star"

                                • Conflict → TIE
                              3. Hollywood context: "The producer married the star"

                                • Both agree → CELEBRITY (reinforced)
                              4. Sci-fi context: "The alien married the star"

                                • Weak conflict → depends on genre conventions

                              Neutral context: "Someone married a star"

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

                                Hollywood context: "The producer married the star"

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

                                  Sci-fi context: "The alien married the star"

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

                                    Comparison of Contexts #

                                    ContextSel(C)Sel(S)Scen(C)Scen(S)P(CELEBRITY)
                                    Neutral0.900.100.500.500.90
                                    Astronomer0.900.100.100.900.50 (TIE)
                                    Producer0.900.100.950.050.99
                                    Alien0.600.400.300.700.39

                                    The "alien" case is interesting: even though CELESTIAL wins, it's not a clear pun because the selectional constraint is also weakened in sci-fi contexts.

                                    Summary: Compositional Constraint Interaction #

                                    Key Principles from @cite{erk-herbelot-2024} #

                                    1. Product of Experts: Constraints multiply, they do not add.

                                      • Both must be satisfied for high probability
                                      • One zero kills the interpretation
                                    2. Relative strength matters: The ratio determines the winner.

                                      • Strong selectional + weak scenario → selectional wins
                                      • Weak selectional + strong scenario → scenario wins
                                      • Equal strengths → conflict/tie
                                    3. Scenario propagation: Context words activate frames.

                                      • "sailor" → NAUTICAL
                                      • "coach" + "play" → SPORTS
                                      • "astronomer" → ASTRONOMY
                                    4. Conflict predicts pragmatic effects:

                                      • Tie → pun/zeugma reading
                                      • Near-tie → garden path potential
                                      • Agreement → confident interpretation

                                    Computational Pattern #

                                    For word w in context C with concepts {c₁, c₂,...}:

                                    P(cᵢ | C) ∝ P_sel(cᵢ | predicate) × P_scen(cᵢ | frame(C))
                                    

                                    Where: