Categorical Ambiguity in a Theoretical and Applied Perspective
Categorical methods in linguistics categorical... · 2014. 10. 21. · Flow of ambiguity a noun...
Transcript of Categorical methods in linguistics categorical... · 2014. 10. 21. · Flow of ambiguity a noun...
Categorical methods in linguistics
Robin Piedeleu
2014-10-16
What does
share with
?
Categories capture composition
B C
A
g
fg ○ f
Reconciling syntax and semantics
Formal, symbolic, logical
"I reject the contention that an important theoretical differenceexists between formal and natural languages."
- English as a Formal Language, Montague
Compositional but incomplete model of meaning.
Distributional
"You shall know the word by the company it keeps"
- J.R. Firth
queen
plant
economy
monarch
law
growth
vegetable
Good model of meaning of individual words but not obviouslycompositional
Compositional distributional model
▸ With categorical methods we wish to provide a general andabstract interface between these two approaches.
▸ A functorFSyntax Semantics
▸ What structure do we need to express basic syntactic andsemantic information? Category in which
▸ objects are grammatical types;▸ morphisms are ???.
What structure?
▸ Monoidal: type of a sentence is the tensor of the types of thewords
My fake plants died ∶ Pr ⊗Adj ⊗N ⊗V i
▸ Closed: exponentials equipped with evaluation morphisms∗
NP ⊗ (NP ⇒ S)EvalNP,SÐÐÐÐ→ S
∗ satisfying the appropriate universal properties.
What structure?
▸ Monoidal: type of a sentence is the tensor of the types of thewords
My fake plants died ∶ Pr ⊗Adj ⊗N ⊗V i
▸ Closed: exponentials equipped with evaluation morphisms∗
NP ⊗ (NP ⇒ S)EvalNP,SÐÐÐÐ→ S
∗ satisfying the appropriate universal properties.
What structure?
▸ Monoidal: type of a sentence is the tensor of the types of thewords
My fake plants died ∶ Pr ⊗Adj ⊗N ⊗V i
▸ Closed: exponentials equipped with evaluation morphisms∗
(S ⇐ NP)⊗NPLaveNP,SÐÐÐÐ→ S
∗ satisfying the appropriate universal properties.
A more convenient framework: compact closed categories
We get a diagrammatic calculus for free!
ηlA =
εlA =
A A
A AεrA =A A
AηrA =
A
A more convenient framework: compact closed categories
We get a diagrammatic calculus for free!
A
A
= =A
A
A
and
A
A
A
= A
A
A
A=
A more convenient framework: compact closed categories
We get a diagrammatic calculus for free!
A⊗ (Ar ⊗B)εrA⊗1BÐÐÐ→ B (B ⊗Al)⊗A
1B⊗εlAÐÐÐ→ A
A A
B
A
B
A
EvalA,B LaveA,B
Reductions
▸ Morphisms in the internal language of a monoidal closedcategory.
▸ A reduction looks like
John likes MaryN r ⊗ S ⊗N lN N
What structure?
▸ Monoidal: type of a sentence is the tensor of the types of thewords
My fake plants died ∶ Pr ⊗Adj ⊗N ⊗V i
▸ Closed: exponentials equipped with evaluation morphisms∗
NP ⊗ (NP ⇒ S)EvalNP,SÐÐÐÐ→ S
▸ Dagger: involutive, identity on object contravariant functor∗.To compare the proximity of meaning:
IloveÐÐ→ N r ⊗ S ⊗N l like†
ÐÐ→ I
∗satisfying coherence conditions with the compact closed structure.
What structure?
▸ Monoidal: type of a sentence is the tensor of the types of thewords
My fake plants died ∶ Pr ⊗Adj ⊗N ⊗V i
▸ Closed: exponentials equipped with evaluation morphisms∗
NP ⊗ (NP ⇒ S)EvalNP,SÐÐÐÐ→ S
▸ Dagger: involutive, identity on object contravariant functor∗.To compare the proximity of meaning:
IloveÐÐ→ N r ⊗ S ⊗N l like†
ÐÐ→ I
∗satisfying coherence conditions with the compact closed structure.
Functorial interpretation
Strict monoidal functor from our syntactic category to our semanticcategory.
John likes Mary
N r ⊗ S ⊗N lN N
Functorial interpretation
Strict monoidal functor from our syntactic category to our semanticcategory.
John likes Mary
N r ⊗ S ⊗N lN NJohn
SMary
likes
=
Examples:
GrFÐÐÐÐ→ FdHilb, ∑
ijk
⟨John∣vi ⟩sj⟨vk ∣Mary⟩
Functorial interpretation
Strict monoidal functor from our syntactic category to our semanticcategory.
John likes Mary
N r ⊗ S ⊗N lN NJohn
SMary
likes
=
Examples:
GrFÐÐÐÐ→ FdHilb, ∑
ijk
⟨John∣vi ⟩sj⟨vk ∣Mary⟩
Functorial interpretation
Strict monoidal functor from our syntactic category to our semanticcategory.
John likes Mary
N r ⊗ S ⊗N lN NJohn
SMary
likes
=
Examples:
GrFÐÐÐÐ→ CPM(FdHilb)
Examples:
GrFÐÐÐÐ→ CPM(FdHilb)
⌜TrN,N(ρ(like) ○ (ρ(John)⊗ 1S ⊗ ρ(Mary)))⌝
Disambiguation
Queen
Context determines meaning:
▸ "the queen overruled the decision of the prime minister"▸ "Queen captures the rook in a1"
Toy example
Bank
Context determines meaning:
"river bank"
Flow of ambiguity
adj
noun
↦adj noun
Flow of ambiguity
a
noun
↦adj noun
a
More refined process: CP∗
Flow of ambiguity
a
noun
↦adj noun
a
More refined process: CP∗
Moral of the story
Contextual features of natural language can be builtin the wires.