Language algebras π β AST (π») 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) π’ β π(π») β T π΅ β¦ Fruit Fruit π½ β¦ VP β πΎ( VBZ , PP ) NN β π NP β πΏ( NN ) S β π½( NP , VP ) factors ( Fruit flies like bananas ) = { Fruit , like bananas , β¦ } 7 / 21 β¨π¦ 1 flies π¦ 2 β© π π΅ : T π β T π΅ interpretation of π΅ as operations on the set of syntactic objects β = π¦ β (.) π¦ β : T π΅ (terms) β π¦ β (syntactic objects)
Language algebras β¨ Fruit flies β¦ β© 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) π’ β π(π») β T π΅ β¦ Fruit Fruit π β AST (π») β¦ VP β πΎ( VBZ , PP ) NN β π NP β πΏ( NN ) S β π½( NP , VP ) factors ( Fruit flies like bananas ) = { Fruit , like bananas , β¦ } 7 / 21 π π΅ : T π β T π΅ interpretation of π΅ as operations on the set of syntactic objects β = π¦ β (.) π¦ β : T π΅ (terms) β π¦ β (syntactic objects)
Language algebras β¨ Fruit flies β¦ β© 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) π’ β π(π») β T π΅ β¦ Fruit Fruit π β AST (π») β¦ VP β πΎ( VBZ , PP ) NN β π NP β πΏ( NN ) S β π½( NP , VP ) factors ( Fruit flies like bananas ) = { Fruit , like bananas , β¦ } 7 / 21 π π΅ : T π β T π΅ interpretation of π΅ as operations on the set of syntactic objects β = π¦ β (.) π¦ β : T π΅ (terms) β π¦ β (syntactic objects)
Language algebras π½ 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) Fruit flies β¦ π’ β π(π») β T π΅ β¦ πΎ π πΏ π β AST (π») β¦ VP β πΎ( VBZ , PP ) NN β π NP β πΏ( NN ) S β π½( NP , VP ) factors ( Fruit flies like bananas ) = { Fruit , like bananas , β¦ } 7 / 21 π π΅ : T π β T π΅ (.) π¦ β : T π΅ β π¦ β interpretation of π΅ as operations on the set of syntactic objects β = π¦ β (.) π¦ β : T π΅ (terms) β π¦ β (syntactic objects)
Semirings Algebraic structure ( π , β , β , π , π ) β is used to evaluate an AST to a weight β accumulates the weights of several ASTs Examples ( πΊ , β¨, β§, false , true ) the Boolean semiring with πΊ = { false , true } ( β β , +, β , 0, 1) the semiring of natural numbers ( β β , min , +, β, 0) the tropical semiring ( β 1 0 , max , β , 0, 1) the Viterbi semiring Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 2019-09-25 8 / 21
Semirings Algebraic structure ( π , β , β , π , π ) β is used to evaluate an AST to a weight β accumulates the weights of several ASTs Examples ( πΊ , β¨, β§, false , true ) the Boolean semiring with πΊ = { false , true } ( β β , +, β , 0, 1) the semiring of natural numbers ( β β , min , +, β, 0) the tropical semiring ( β 1 0 , max , β , 0, 1) the Viterbi semiring Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 2019-09-25 8 / 21
π» β = { mul π ( π 1 , β¦ , π π ) = π β π 1 β β― β π π with π» med = { del , ins , rep = , rep β , nil } Multioperator monoids (M-monoids) mul 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) Minimum edit distance M-monoid ({{π} β£ π β β }, min β βͺ, β , π» med ) 0 , max , 0, π» mul ) Viterbi M-monoid ( β 1 Examples (π) π β£ π β π , π β β } Generalization of semirings (π) M-monoid ( π , β , π , π» β ) where Semiring ( π , β , β , π , π ) βΆ ( π , β , π , π») βΆ ( π , β , β , π , π ) 9 / 21 binary β set of π -ary operations π» (here: distributive)
with π» med = { del , ins , rep = , rep β , nil } Multioperator monoids (M-monoids) Generalization of semirings 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) Minimum edit distance M-monoid ({{π} β£ π β β }, min β βͺ, β , π» med ) 0 , max , 0, π» mul ) Viterbi M-monoid ( β 1 Examples (π) mul β£ π β π , π β β } π (π) βΆ ( π , β , π , π») βΆ ( π , β , β , π , π ) 9 / 21 binary β set of π -ary operations π» (here: distributive) Semiring ( π , β , β , π , π ) β M-monoid ( π , β , π , π» β ) where π» β = { mul π ( π 1 , β¦ , π π ) = π β π 1 β β― β π π
Multioperator monoids (M-monoids) Generalization of semirings 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) Minimum edit distance M-monoid ({{π} β£ π β β }, min β βͺ, β , π» med ) 0 , max , 0, π» mul ) Viterbi M-monoid ( β 1 Examples (π) mul β£ π β π , π β β } π (π) βΆ ( π , β , π , π») βΆ ( π , β , β , π , π ) 9 / 21 binary β set of π -ary operations π» (here: distributive) Semiring ( π , β , β , π , π ) β M-monoid ( π , β , π , π» β ) where π» β = { mul π ( π 1 , β¦ , π π ) = π β π 1 β β― β π π with π» med = { del , ins , rep = , rep β , nil }
1.0 β π 1 β π 2 0.6 β π 1 β π 2 1 : T π» (terms) β β 1 0 (weight algebra) 0.2 β π 1 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) (.) β 0 0 , max , 0, π» mul ) ( β 1 wt : π (set of rules) β π» (set of operations) wt (π) β T π» wt β¦ 1.0 Weight algebras S β π½( NP , VP ) (.) π¦ β Fruit flies β¦ π’ β π(π») β T π΅ π π΅ β¦ πΎ π πΏ π½ π β AST (π») β¦ VP β πΎ( VBZ , PP ) NN β π NP β πΏ( NN ) 10 / 21
1.0 β π 1 β π 2 0.6 β π 1 β π 2 1 : T π» (terms) β β 1 0 (weight algebra) 0.2 β π 1 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) (.) β 0 0 , max , 0, π» mul ) ( β 1 wt : π (set of rules) β π» (set of operations) wt (π) β T π» wt β¦ 1.0 Weight algebras S β π½( NP , VP ) (.) π¦ β Fruit flies β¦ π’ β π(π») β T π΅ π π΅ β¦ πΎ π πΏ π½ π β AST (π») β¦ VP β πΎ( VBZ , PP ) NN β π NP β πΏ( NN ) 10 / 21
1 : T π» (terms) β β 1 0 (weight algebra) Weight algebras S β π½( NP , VP ) 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) (.) β 0 0 , max , 0, π» mul ) ( β 1 wt : π (set of rules) β π» (set of operations) wt (π) β T π» wt β¦ 1.0 0.2 β π 1 10 / 21 (.) π¦ β Fruit flies β¦ π’ β π(π») β T π΅ π π΅ β¦ πΎ π πΏ π½ π β AST (π») β¦ VP β πΎ( VBZ , PP ) NN β π NP β πΏ( NN ) 1.0 β π 1 β π 2 0.6 β π 1 β π 2
Weight algebras (.) π¦ β 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) (.) β 0 0 , max , 0, π» mul ) ( β 1 wt : π (set of rules) β π» (set of operations) wt (π) β T π» wt β¦ 1.0 0.2 β π 1 S β π½( NP , VP ) 10 / 21 Fruit flies β¦ π’ β π(π») β T π΅ NP β πΏ( NN ) NN β π VP β πΎ( VBZ , PP ) β¦ π β AST (π») π½ πΏ π πΎ β¦ π π΅ 1.0 β π 1 β π 2 0.6 β π 1 β π 2 1 : T π» (terms) β β 1 0 (weight algebra)
Weight algebras (.) π¦ β 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) (.) β 0 0 , max , 0, π» mul ) ( β 1 wt : π (set of rules) β π» (set of operations) wt (π) β T π» wt β¦ 1.0 0.2 S β π½( NP , VP ) 10 / 21 Fruit flies β¦ π’ β π(π») β T π΅ NP β πΏ( NN ) NN β π VP β πΎ( VBZ , PP ) β¦ π β AST (π») π½ πΏ π πΎ β¦ π π΅ 1.0 β π 1 β π 2 0.6 β π 1 β π 2 1 : T π» (terms) β β 1 0 (weight algebra)
Weight algebras S β π½( NP , VP ) 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) (.) β 0 0 , max , 0, π» mul ) ( β 1 wt : π (set of rules) β π» (set of operations) wt (π) β T π» wt 0.6 β β¦ 1.0 0.2 (.) π¦ β Fruit flies β¦ π’ β π(π») β T π΅ NP β πΏ( NN ) NN β π VP β πΎ( VBZ , PP ) β¦ π β AST (π») π½ πΏ π πΎ β¦ π π΅ 10 / 21 1.0 β π 1 β π 2 1 : T π» (terms) β β 1 0 (weight algebra)
Weight algebras S β π½( NP , VP ) 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) (.) β 0 0 , max , 0, π» mul ) ( β 1 wt : π (set of rules) β π» (set of operations) wt (π) β T π» wt 0.6 β β¦ 1.0 0.2 0.12 β β¦ (.) π¦ β Fruit flies β¦ π’ β π(π») β T π΅ π π΅ β¦ πΎ π πΏ π½ π β AST (π») β¦ VP β πΎ( VBZ , PP ) NN β π NP β πΏ( NN ) 10 / 21 1 : T π» (terms) β β 1 0 (weight algebra)
Weight algebras S β π½( NP , VP ) 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) (.) β 0 0 , max , 0, π» mul ) ( β 1 wt : π (set of rules) β π» (set of operations) 0 (.) β 1 0.12 β β¦ wt (π) β T π» wt β¦ 1.0 0.2 β π 1 10 / 21 (.) π¦ β NP β πΏ( NN ) NN β π VP β πΎ( VBZ , PP ) β¦ π β AST (π») π½ πΏ π πΎ β¦ π π΅ π’ β π(π») β T π΅ Fruit flies β¦ 1.0 β π 1 β π 2 0.6 β π 1 β π 2 1 : T π» (terms) β β 1 0 (weight algebra)
β A wRTG-LM is a tuple ( (π» = (π, π΅, π΅ 0 , π)) Weighted RTG-based language models β β β β β β β RTG , β language algebra ), ( π , β , π , π») β M-monoid , wt β wt : π β π» ) . Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 2019-09-25 ββ Defjnition (weighted RTG-based language model) S β π½( NP , VP ) π π΅ NP β πΏ( NN ) NN β π VP β πΎ( VBZ , PP ) β¦ π β AST (π») π½ πΏ π πΎ β¦ π’ β π(π») β T π΅ (.) π¦ β 0.2 β π 1 1.0 β¦ wt wt (π) β T π» 0.12 β β¦ (.) β 1 0 Fruit flies β¦ 11 / 21 1.0 β π 1 β π 2 0.6 β π 1 β π 2
Weighted RTG-based language models language algebra β β β β β β β RTG , β ), S β π½( NP , VP ) ( π , β , π , π») β M-monoid , wt β wt : π β π» ) . Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 2019-09-25 ββ Defjnition (weighted RTG-based language model) (.) π¦ β π’ β π(π») β T π΅ NP β πΏ( NN ) NN β π VP β πΎ( VBZ , PP ) β¦ π β AST (π») π½ πΏ π πΎ β¦ π π΅ 11 / 21 0.2 β π 1 1.0 β¦ wt wt (π) β T π» 0.12 β β¦ (.) β 1 0 Fruit flies β¦ 1.0 β π 1 β π 2 0.6 β π 1 β π 2 β A wRTG-LM is a tuple ( (π» = (π, π΅, π΅ 0 , π))
Outline 1 Weighted RTG-based language models 2 The weighted parsing problem 3 The weighted parsing algorithm Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 2019-09-25 12 / 21
The weighted parsing problem 0.2 β π 1 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) (.) π¦ β Fruit flies β¦ 0 (.) β 1 0.12 β β¦ wt (π) β T π» wt β¦ 1.0 13 / 21 S β π½( NP , VP ) π’ β π(π») β T π΅ π π΅ β¦ πΎ π πΏ π½ π β AST (π») β¦ VP β πΎ( VBZ , PP ) NN β π NP β πΏ( NN ) 1.0 β π 1 β π 2 0.6 β π 1 β π 2
The weighted parsing problem S β π½( NP , VP ) 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) (.) π¦ β π π΅ (.) π¦ β Fruit flies β¦ 0 (.) β 1 0.12 β β¦ wt (π) β T π» wt β¦ 1.0 0.2 β π 1 πΏ NP β πΏ( NN ) NN β π VP β πΎ( VBZ , PP ) β¦ π β AST (π») π½ π πΎ β¦ π π΅ π’ β π(π») β T π΅ 13 / 21 1.0 β π 1 β π 2 0.6 β π 1 β π 2 π’ β² β T π΅ π β² β AST (π»)
The weighted parsing problem (.) π¦ β 0.12 β β¦ (.) β 1 0 Fruit flies β¦ (.) π¦ β π π΅ wt (π β² ) β T π» S β π½( NP , VP ) wt 0.0144 (.) β 1 0 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 2019-09-25 wt (π) β T π» wt β¦ π NP β πΏ( NN ) NN β π VP β πΎ( VBZ , PP ) β¦ π β AST (π») π½ πΏ πΎ β¦ π π΅ π’ β π(π») β T π΅ 0.2 β π 1 1.0 13 / 21 1.0 β π 1 β π 2 0.6 β π 1 β π 2 π’ β² β T π΅ π β² β AST (π»)
The weighted parsing problem wt (π β² ) β T π» (.) β 1 0 Fruit flies β¦ (.) π¦ β π π΅ (.) π¦ β wt S β π½( NP , VP ) 0.0144 (.) β 1 0 ( β 1 0 , max , 0, π» mul ) Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 2019-09-25 0.12 β β¦ wt (π) β T π» wt πΎ NP β πΏ( NN ) NN β π VP β πΎ( VBZ , PP ) β¦ π β AST (π») π½ πΏ π β¦ β¦ π π΅ π’ β π(π») β T π΅ 0.2 β π 1 1.0 13 / 21 1.0 β π 1 β π 2 0.6 β π 1 β π 2 π’ β² β T π΅ π β² β AST (π»)
The weighted parsing problem wt (π β² ) β T π» (.) β 1 0 Fruit flies β¦ (.) π¦ β π π΅ (.) π¦ β wt S β π½( NP , VP ) 0.0144 (.) β 1 0 ( β 1 0 , max , 0, π» mul ) Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 2019-09-25 0.12 β β¦ wt (π) β T π» wt β¦ NP β πΏ( NN ) NN β π VP β πΎ( VBZ , PP ) β¦ π β AST (π») π½ πΏ π πΎ β¦ π π΅ π’ β π(π») β T π΅ 0.2 β π 1 1.0 13 / 21 1.0 β π 1 β π 2 0.6 β π 1 β π 2 max { π’ β² β T π΅ π β² β AST (π»)
The weighted parsing problem wt (.) β 1 0 Fruit flies β¦ (.) π¦ β π π΅ (.) π¦ β wt (π β² ) β T π» 0.0144 wt (π) β T π» (.) β 1 0 ( β 1 0 , max , 0, π» mul ) parse Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 2019-09-25 S β π½( NP , VP ) 0.12 β β¦ wt β¦ NP β πΏ( NN ) NN β π VP β πΎ( VBZ , PP ) β¦ π β AST (π») π½ πΏ π πΎ β¦ π π΅ π’ β π(π») β T π΅ 0.2 β π 1 1.0 13 / 21 1.0 β π 1 β π 2 0.6 β π 1 β π 2 max { π’ β² β T π΅ π β² β AST (π»)
The weighted parsing problem (.) β 1 Fruit flies β¦ (.) π¦ β π π΅ (.) π¦ β wt (π β² ) β T π» wt 0.0144 0 S β π½( NP , VP ) ( β 1 0 , max , 0, π» mul ) parse parse (π) = β β πβ AST (π»,π) wt (π) Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 2019-09-25 0 (.) β 1 0.12 β β¦ wt (π) β T π» NP β πΏ( NN ) NN β π VP β πΎ( VBZ , PP ) β¦ π β AST (π») π½ πΏ π πΎ β¦ π π΅ π’ β π(π») β T π΅ 0.2 β π 1 1.0 β¦ wt 13 / 21 1.0 β π 1 β π 2 0.6 β π 1 β π 2 max { π’ β² β T π΅ π β² β AST (π»)
The weighted parsing problem Algebraic dynamic programming (Giegerich, Meyer, and Stefgen 2004) 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) Shamir 1961) Reduct of a grammar and a syntactic object (cf. Bar-Hillel, Perles, and matrix chain multiplication minimum edit distance Parsing with superior grammars (Knuth 1977; Nederhof 2003) Examples π best derivation(s) best derivation(s) derivation forest probability of best derivation string probability recognition Semiring parsing (Goodman 1999) 14 / 21
Outline 1 Weighted RTG-based language models 2 The weighted parsing problem 3 The weighted parsing algorithm Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 2019-09-25 15 / 21
((π», β ), π , wt ) - π β β Weighted parsing algorithm Two-phase pipeline (Goodman 1999; Nederhof 2003) - wRTG-LM parse (π) = β β πβ AST (π»,π) wt (π) Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 2019-09-25 16 / 21
Weighted parsing algorithm Two-phase pipeline (Goodman 1999; Nederhof 2003) - wRTG-LM parse (π) = β β πβ AST (π»,π) wt (π) Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 2019-09-25 16 / 21 ((π», β ), π , wt ) - π β β
Weighted parsing algorithm Two-phase pipeline (Goodman 1999; Nederhof 2003) - wRTG-LM parse (π) = β β πβ AST (π»,π) wt (π) canonical weighted deduction system Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 2019-09-25 16 / 21 ((π», β ), π , wt ) - π β β
Weighted parsing algorithm Two-phase pipeline (Goodman 1999; Nederhof 2003) 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) wRTG-LM system deduction weighted canonical wt (π) πβ AST (π»,π) parse (π) = β β - wRTG-LM 16 / 21 ((π», β ), π , wt ) ((π» β² , πβ± π£ β ), π , wt β² ) - π β β
Weighted parsing algorithm Two-phase pipeline (Goodman 1999; Nederhof 2003) 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) ? = wt β² (π) πβ AST (π» β² ) β β wRTG-LM system deduction weighted canonical wt (π) πβ AST (π»,π) parse (π) = β β - wRTG-LM 16 / 21 ((π», β ), π , wt ) ((π» β² , πβ± π£ β ), π , wt β² ) - π β β
Weighted parsing algorithm Two-phase pipeline (Goodman 1999; Nederhof 2003) 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) algorithm computation value ? = wt β² (π) πβ AST (π» β² ) β β 16 / 21 wRTG-LM system deduction weighted canonical wt (π) πβ AST (π»,π) parse (π) = β β - wRTG-LM ((π», β ), π , wt ) ((π» β² , πβ± π£ β ), π , wt β² ) - π β β
Weighted parsing algorithm πβ AST (π» β² ) 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) ? = 0 ) π(π΅ β² algorithm computation value ? = wt β² (π) β β Two-phase pipeline (Goodman 1999; Nederhof 2003) wRTG-LM system deduction weighted canonical wt (π) πβ AST (π»,π) parse (π) = β β - wRTG-LM 16 / 21 ((π», β ), π , wt ) ((π» β² , πβ± π£ β ), π , wt β² ) - π β β
Weighted parsing algorithm πβ AST (π» β² ) 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) weighted parsing algorithm ? = 0 ) π(π΅ β² algorithm computation value ? = wt β² (π) β β Two-phase pipeline (Goodman 1999; Nederhof 2003) wRTG-LM system deduction weighted canonical wt (π) πβ AST (π»,π) parse (π) = β β - wRTG-LM 16 / 21 ((π», β ), π , wt ) ((π» β² , πβ± π£ β ), π , wt β² ) - π β β
Canonical weighted deduction system Weight preserving 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) wt (π) = wt β² (π(π)) for every π β AST (π», π) 2 Bijection π: AST (π», π) β AST (π» β² ) 1 π΅ β π(π΅ 1 , β¦ , π΅ π ) is a rule { [π΅ , π 0 ] Parsing as deduction (Shieber, Schabes, and Pereira 1995) cwds 17 / 21 - wRTG-LM ((π», β ), π , wt ) wRTG-LM ((π» β² , πβ± π£ β ), π , wt β² ) - π β β [π΅ 1 , π 1 ] β¦ [π΅ π , π π ] π 0 , π 1 , β¦ , π π β factors (π) π 0 = π(π 1 , β¦ , π π )
Canonical weighted deduction system Weight preserving 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) wt (π) = wt β² (π(π)) for every π β AST (π», π) 2 Bijection π: AST (π», π) β AST (π» β² ) 1 π΅ β π(π΅ 1 , β¦ , π΅ π ) is a rule { [π΅ , π 0 ] Parsing as deduction (Shieber, Schabes, and Pereira 1995) cwds 17 / 21 - wRTG-LM ((π», β ), π , wt ) wRTG-LM ((π» β² , πβ± π£ β ), π , wt β² ) - π β β [π΅ 1 , π 1 ] β¦ [π΅ π , π π ] π 0 , π 1 , β¦ , π π β factors (π) π 0 = π(π 1 , β¦ , π π )
Canonical weighted deduction system Weight preserving 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) wt (π) = wt β² (π(π)) for every π β AST (π», π) 2 Bijection π: AST (π», π) β AST (π» β² ) 1 π΅ β π(π΅ 1 , β¦ , π΅ π ) is a rule { [π΅ , π 0 ] Parsing as deduction (Shieber, Schabes, and Pereira 1995) cwds 17 / 21 - wRTG-LM ((π», β ), π , wt ) wRTG-LM ((π» β² , πβ± π£ β ), π , wt β² ) - π β β [π΅ 1 , π 1 ] β¦ [π΅ π , π π ] π 0 , π 1 , β¦ , π π β factors (π) π 0 = π(π 1 , β¦ , π π )
Canonical weighted deduction system Weight preserving 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) wt (π) = wt β² (π(π)) for every π β AST (π», π) 2 Bijection π: AST (π», π) β AST (π» β² ) 1 17 / 21 { [π΅ , π 0 ] Parsing as deduction (Shieber, Schabes, and Pereira 1995) cwds - wRTG-LM ((π», β ), π , wt ) wRTG-LM ((π» β² , πβ± π£ β ), π , wt β² ) - π β β π΅ β π(π΅ 1 , β¦ , π΅ π ) is a rule [π΅ 1 , π 1 ] β¦ [π΅ π , π π ] π 0 , π 1 , β¦ , π π β factors (π) π 0 = π(π 1 , β¦ , π π )
Canonical weighted deduction system Weight preserving 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) wt (π) = wt β² (π(π)) for every π β AST (π», π) 2 Bijection π: AST (π», π) β AST (π» β² ) 1 π΅ β π(π΅ 1 , β¦ , π΅ π ) is a rule { [π΅ , π 0 ] Parsing as deduction (Shieber, Schabes, and Pereira 1995) cwds 17 / 21 - wRTG-LM ((π», β ), π , wt ) wRTG-LM ((π» β² , πβ± π£ β ), π , wt β² ) - π β β [π΅ 1 , π 1 ] β¦ [π΅ π , π π ] π 0 , π 1 , β¦ , π π β factors (π) π 0 = π(π 1 , β¦ , π π )
Canonical weighted deduction system Weight preserving 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) wt (π) = wt β² (π(π)) for every π β AST (π», π) 2 Bijection π: AST (π», π) β AST (π» β² ) 1 π΅ β π(π΅ 1 , β¦ , π΅ π ) is a rule { [π΅ , π 0 ] Parsing as deduction (Shieber, Schabes, and Pereira 1995) cwds 17 / 21 - wRTG-LM ((π», β ), π , wt ) wRTG-LM ((π» β² , πβ± π£ β ), π , wt β² ) - π β β [π΅ 1 , π 1 ] β¦ [π΅ π , π π ] π 0 , π 1 , β¦ , π π β factors (π) π 0 = π(π 1 , β¦ , π π )
Weighted parsing algorithm πβ AST (π» β² ) 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) weighted parsing algorithm ? = 0 ) π(π΅ β² algorithm computation value ? = wt β² (π) β β Two-phase pipeline (Goodman 1999; Nederhof 2003) wRTG-LM system deduction weighted canonical wt (π) πβ AST (π»,π) parse (π) = β β - wRTG-LM 18 / 21 ((π», β ), π , wt ) ((π» β² , πβ± π£ β ), π , wt β² ) - π β β
Value computation algorithm 5: 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 12: until changed = false π(π΅) β π new 11: changed β true 10: 9: 8: 7: 6: changed β false π(π΅) β π 0 , π β² ) Output: π(π΅ β² 0 ) 2: 19 / 21 3: repeat 4: Input: a wRTG-LM ((π» β² , πβ± π£ β ), ( π , β , π , π»), wt β² ) with π» β² = (π β² , π΅ β² , π΅ β² Variables: π: π β² β π , π new β π , changed β πΊ 1: for each π΅ β π β² do for each π΅ β π β² do π new β π for each π = (π΅ β β¨π¦ 1 β¦ π¦ π β©(π΅ 1 , β¦ , π΅ π )) in π β² do π new β π new β wt β² (π )(π(π΅ 1 ), β¦ , π(π΅ π )) if π(π΅) β π new then
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦ π π π ( B A S π πΎ πΏ S π½ B A β πΎ β β β π Value computation algorithm (example) π 1 ( π ) β π 2 ( π ) 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π 3 () π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 β π 4 ( π 2 , π 1 ) β π 5 () β β β β πΏ( A ) β β β β β β π 2 S β β π( B ) β β β β β β π 1 S β A π 3 β π 5 B β π( A , S ) β β β β β β π 4 B β π½ β β β β β β β 20 / 21 ((π», πβ± π£ β ), ( π , π , β , π»), wt )
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦ π π π ( B A S π πΎ πΏ S π½ B A β πΎ β β β π Value computation algorithm (example) π 1 ( π ) β π 2 ( π ) 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π 3 () π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 β π 4 ( π 2 , π 1 ) β π 5 () β β β β πΏ( A ) β β β β β β π 2 S β β π( B ) β β β β β β π 1 S β A π 3 β π 5 B β π( A , S ) β β β β β β π 4 B β π½ β β β β β β β 20 / 21 ((π», πβ± π£ β ), ( π , π , β , π»), wt )
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦ π π π ( B A S π πΎ πΏ S π½ B A β πΎ β β β π Value computation algorithm (example) π 1 ( π ) β π 2 ( π ) 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π 3 () π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 β π 4 ( π 2 , π 1 ) β π 5 () β β β β πΏ( A ) β β β β β β π 2 S β β π( B ) β β β β β β π 1 S β A π 3 β π 5 B β π( A , S ) β β β β β β π 4 B β π½ β β β β β β β 20 / 21 ((π», πβ± π£ β ), ( π , π , β , π»), wt )
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦ π π π ( B A S π πΎ πΏ S π½ B A β πΎ β β β π Value computation algorithm (example) π 1 ( π ) β π 2 ( π ) 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π 3 () π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 β π 4 ( π 2 , π 1 ) β π 5 () β β β β πΏ( A ) β β β β β β π 2 S β β π( B ) β β β β β β π 1 S β A π 3 β π 5 B β π( A , S ) β β β β β β π 4 B β π½ β β β β β β β 20 / 21 ((π», πβ± π£ β ), ( π , π , β , π»), wt )
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦ π π π ( B A S π πΎ πΏ S π½ B A β πΎ β β β π Value computation algorithm (example) π 1 ( π ) β π 2 ( π ) 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π 3 () π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 β π 4 ( π 2 , π 1 ) β π 5 () β β β β πΏ( A ) β β β β β β π 2 S β β π( B ) β β β β β β π 1 S β A π 3 β π 5 B β π( A , S ) β β β β β β π 4 B β π½ β β β β β β β 20 / 21 ((π», πβ± π£ β ), ( π , π , β , π»), wt )
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦ π π π ( B A S π πΎ πΏ S π½ B A β πΎ β β β π Value computation algorithm (example) π 1 ( π ) β π 2 ( π ) 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π 3 () π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 β π 4 ( π 2 , π 1 ) β π 5 () β β β β πΏ( A ) β β β β β β π 2 S β β π( B ) β β β β β β π 1 S β A π 3 β π 5 B β π( A , S ) β β β β β β π 4 B β π½ β β β β β β β 20 / 21 ((π», πβ± π£ β ), ( π , π , β , π»), wt )
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦ π π π π ( B A S S π πΏ πΎ π½ B A β πΎ β β ) Value computation algorithm (example) π 1 ( π ) β π 2 ( π ) 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π 3 () π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 β π 4 ( π 2 , π 1 ) β π 5 () β β β S β β β β β β β π 2 β πΏ( A ) A β β β β β β β π 1 S β π( B ) π 3 β β π 5 B β π( A , S ) β β β β β β β π 4 B β π½ β β β β β β 20 / 21 ((π», πβ± π£ β ), ( π , π , β , π»), wt )
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) = ( ) β¦ ( ) = ( ) β¦ β¦ π π π ( B A S π πΎ πΏ S π 1 ( π ) β π 2 ( π ) π½ B A β πΎ β β β π Value computation algorithm (example) π 3 () 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π 4 ( π 2 , π 1 ) β π 5 () π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 β ) β β β S β β β β β β β π 2 β πΏ( A ) A β β β β β β β π 1 S β π( B ) π 3 20 / 21 β π 5 B β π( A , S ) β β β β β β β π 4 B β π½ β β β β β β ((π», πβ± π£ β ), ( π , π , β , π»), wt ) ) β¦ (
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) β¦ ( ) = ( ) β¦ β¦ Value computation algorithm (example) πΏ π ( B A S π π πΎ S π π½ B A β πΎ β β β π π 1 π 1 ( π ) β π 2 ( π ) 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π 3 () π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) ) π 3 π 2 β π 4 ( π 2 , π 1 ) β π 5 () β β β S β β β β β β β π 2 β πΏ( A ) π 3 β β β β β β β π 1 S β π( B ) A 20 / 21 β π 5 B β π( A , S ) β β β β β β π 4 B β π½ β β β β β β β ((π», πβ± π£ β ), ( π , π , β , π»), wt ) ) β¦ ( ) = (
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) β¦ ( ) = ( ) β¦ β¦ Value computation algorithm (example) πΏ π ( B A S π π πΎ S π π½ B A β πΎ β β β π π 1 π 1 ( π ) β π 2 ( π ) 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π 3 () π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) ) π 3 π 2 β π 4 ( π 2 , π 1 ) β π 5 () β β β S β β β β β β β π 2 β πΏ( A ) π 3 β β β β β β β π 1 S β π( B ) A 20 / 21 β π 5 B β π( A , S ) β β β β β β π 4 B β π½ β β β β β β β ((π», πβ± π£ β ), ( π , π , β , π»), wt ) ) β¦ ( ) = (
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) β¦ ( ) = ( ) β¦ β¦ Value computation algorithm (example) πΏ π ( B A S π π πΎ S π π½ B A β πΎ β β β π π 1 π 1 ( π ) β π 2 ( π ) 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π 3 () π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) ) π 3 π 2 β π 4 ( π 2 , π 1 ) β π 5 () β β β S β β β β β β β π 2 β πΏ( A ) π 3 β β β β β β β π 1 S β π( B ) A 20 / 21 β π 5 B β π( A , S ) β β β β β β π 4 B β π½ β β β β β β β ((π», πβ± π£ β ), ( π , π , β , π»), wt ) ) β¦ ( ) = (
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) β¦ ( ) = ( ) β¦ β¦ Value computation algorithm (example) πΏ π ( B A S π π πΎ S π π½ B A β πΎ β β β π π 1 π 1 ( π ) β π 2 ( π ) 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π 3 () π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) ) π 3 π 2 β π 4 ( π 2 , π 1 ) β π 5 () β β β S β β β β β β β π 2 β πΏ( A ) π 3 β β β β β β β π 1 S β π( B ) A 20 / 21 β π 5 B β π( A , S ) β β β β β β π 4 B β π½ β β β β β β β ((π», πβ± π£ β ), ( π , π , β , π»), wt ) ) β¦ ( ) = (
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) β¦ ( ) = ( ) β¦ β¦ Value computation algorithm (example) πΏ π ( B A S π π πΎ S π π½ B A β πΎ β β β π π 1 π 1 ( π ) β π 2 ( π ) 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π 3 () π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) ) π 3 π 2 β π 4 ( π 2 , π 1 ) β π 5 () β β β S β β β β β β β π 2 β πΏ( A ) π 3 β β β β β β β π 1 S β π( B ) A 20 / 21 β π 5 B β π( A , S ) β β β β β β π 4 B β π½ β β β β β β β ((π», πβ± π£ β ), ( π , π , β , π»), wt ) ) β¦ ( ) = (
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) = ( ) β¦ β¦ Value computation algorithm (example) S π ( B A S π π πΏ π½ πΎ π B A β πΎ β β β β π π 4 ( π 2 , π 1 ) β π 5 () π 1 ( π ) β π 2 ( π ) ) 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 1 ) β π 5 () π 3 () 2 , π β² π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 β β β 20 / 21 S β β β β β β β π 2 β πΏ( A ) A β β β β β β β π 1 S π 5 β π( B ) B β π½ β β β β β π 4 π 3 β β β β β π( A , S ) β β β B β β ((π», πβ± π£ β ), ( π , π , β , π»), wt ) ) β¦ ( ) = ( ) β¦ (
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) Value computation algorithm (example) S π ( B A S π π πΏ π½ πΎ π B A β πΎ β β β β π π 4 ( π 2 , π 1 ) β π 5 () π 1 ( π ) β π 2 ( π ) 1 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) β¦ β¦ ) 3 π β² 2 π β² π β² π 3 () 1 ) β π 5 () 2 , π β² π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 β β β 20 / 21 β πΏ( A ) β β β β β β π 2 S β π 5 β β β β β β π 1 S β β π( B ) A π 4 B β π( A , S ) β β β β β β β B β π½ β β β β β β β π 3 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) ) β¦ ( ) = ( ) β¦ ( ) = (
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) Value computation algorithm (example) S π ( B A S π π πΏ π½ πΎ π B A β πΎ β β β β π π 4 ( π 2 , π 1 ) β π 5 () π 1 ( π ) β π 2 ( π ) 1 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) β¦ β¦ ) 3 π β² 2 π β² π β² π 3 () 1 ) β π 5 () 2 , π β² π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 β β β 20 / 21 β πΏ( A ) β β β β β β π 2 S β π 5 β β β β β β π 1 S β β π( B ) A π 4 B β π( A , S ) β β β β β β β B β π½ β β β β β β β π 3 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) ) β¦ ( ) = ( ) β¦ ( ) = (
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) Value computation algorithm (example) S π ( B A S π π πΏ π½ πΎ π B A β πΎ β β β β π π 4 ( π 2 , π 1 ) β π 5 () π 1 ( π ) β π 2 ( π ) 1 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) β¦ β¦ ) 3 π β² 2 π β² π β² π 3 () 1 ) β π 5 () 2 , π β² π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 β β β 20 / 21 β πΏ( A ) β β β β β β π 2 S β π 5 β β β β β β π 1 S β β π( B ) A π 4 B β π( A , S ) β β β β β β β B β π½ β β β β β β β π 3 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) ) β¦ ( ) = ( ) β¦ ( ) = (
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) Value computation algorithm (example) S π ( B A S π π πΏ π½ πΎ π B A β πΎ β β β β π π 4 ( π 2 , π 1 ) β π 5 () π 1 ( π ) β π 2 ( π ) 1 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) β¦ β¦ ) 3 π β² 2 π β² π β² π 3 () 1 ) β π 5 () 2 , π β² π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 β β β 20 / 21 β πΏ( A ) β β β β β β π 2 S β π 5 β β β β β β π 1 S β β π( B ) A π 4 B β π( A , S ) β β β β β β β B β π½ β β β β β β β π 3 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) ) β¦ ( ) = ( ) β¦ ( ) = (
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) Value computation algorithm (example) S π ( B A S π π πΏ π½ πΎ π B A β πΎ β β β β π π 4 ( π 2 , π 1 ) β π 5 () π 1 ( π ) β π 2 ( π ) 1 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) β¦ β¦ ) 3 π β² 2 π β² π β² π 3 () 1 ) β π 5 () 2 , π β² π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 β β β 20 / 21 β πΏ( A ) β β β β β β π 2 S β π 5 β β β β β β π 1 S β β π( B ) A π 4 B β π( A , S ) β β β β β β β B β π½ β β β β β β β π 3 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) ) β¦ ( ) = ( ) β¦ ( ) = (
β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) Value computation algorithm (example) πΎ ( B A S π π πΏ S B π½ π A β πΎ β β β β β π π 1 ( π ) β π 2 ( π ) π 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π 5 π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 π 4 ( π 2 , π 1 ) β π 5 () π 3 () β β B β πΏ( A ) β β β β β β π 2 S β β π( B ) β β β β β β π 1 S β 20 / 21 A π 3 β π( A , S ) β β β β β β β π 4 B β π½ β β β β β β β ((π», πβ± π£ β ), ( π , π , β , π»), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦
Value computation algorithm (example) π½ B A S π π πΏ S πΎ B π A β πΎ β β β β β β ( π B 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 π 4 ( π 2 , π 1 ) β π 5 () π 3 () π 1 ( π ) β π 2 ( π ) π 5 β β π( A , S ) β πΏ( A ) β β β β β β π 2 S β β β β β β β β π 1 S β 20 / 21 β π( B ) β π½ β β β β β β A B π 4 β β β β β β β π 3 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦
Value computation algorithm (example) π½ B A S π π πΏ S πΎ B π A β πΎ β β β β β β ( π B 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 π 4 ( π 2 , π 1 ) β π 5 () π 3 () π 1 ( π ) β π 2 ( π ) π 5 β β π( A , S ) β πΏ( A ) β β β β β β π 2 S β β β β β β β β 0.8β π 1 S β 20 / 21 β π( B ) β π½ β β β β β β A B π 4 β β β β β β β π 3 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦
Value computation algorithm (example) π½ B A S π π πΏ S πΎ B π A β πΎ β β β β β β ( π B 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 π 4 ( π 2 , π 1 ) β π 5 () π 3 () π 1 ( π ) β π 2 ( π ) π 5 β β π( A , S ) β πΏ( A ) β β β β β β 0.1β π 1 S β β β β β β β β 0.8β π 1 S β 20 / 21 β π( B ) β π½ β β β β β β A B π 4 β β β β β β β π 3 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦
Value computation algorithm (example) π½ B A S π π πΏ S πΎ B π A β πΎ β β β β β β ( π B 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 π 4 ( π 2 , π 1 ) β π 5 () π 3 () π 1 ( π ) β π 2 ( π ) π 5 β β π( A , S ) β πΏ( A ) β β β β β β 0.1β π 1 S β β β β β β β β 0.8β π 1 S β 20 / 21 β π( B ) β π½ β β β β β β A B π 4 β β β β β β β 0.5 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦
Value computation algorithm (example) π½ B A S π π πΏ S πΎ B π A β πΎ β β β β β β ( π B 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² π π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 π 4 ( π 2 , π 1 ) β π 5 () π 3 () π 1 ( π ) β π 2 ( π ) 0.1 β β π( A , S ) β πΏ( A ) β β β β β β 0.1β π 1 S β β β β β β β β 0.8β π 1 S β 20 / 21 β π( B ) β π½ β β β β β β A B 0.7β π 1 β π 2 β β β β β β β 0.5 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦
Value computation algorithm (example) π½ B A S π π πΏ S πΎ B 0 A β πΎ β β β β β β ( 0 B 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² 0 π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 π 4 ( π 2 , π 1 ) β π 5 () π 3 () π 1 ( π ) β π 2 ( π ) 0.1 β β π( A , S ) β πΏ( A ) β β β β β β 0.1β π 1 S β β β β β β β β 0.8β π 1 S β 20 / 21 β π( B ) β π½ β β β β β β A B 0.7β π 1 β π 2 β β β β β β β 0.5 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦
Value computation algorithm (example) π½ B A S π π πΏ S πΎ B 0 A β πΎ β β β β β β ( 0 B 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² 0 π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 π 4 ( π 2 , π 1 ) β π 5 () π 3 () 0.8 β 0 max 0.1 β 0 0.1 β β π( A , S ) β πΏ( A ) β β β β β β 0.1β π 1 S β β β β β β β β 0.8β π 1 S β 20 / 21 β π( B ) β π½ β β β β β β A B 0.7β π 1 β π 2 β β β β β β β 0.5 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦
Value computation algorithm (example) π½ B A S π π πΏ S πΎ B 0 A β πΎ β β β β β β ( 0 B 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² 0 π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 π 4 ( π 2 , π 1 ) β π 5 () π 3 () 0 0.1 β β π( A , S ) β πΏ( A ) β β β β β β 0.1β π 1 S β β β β β β β β 0.8β π 1 S β 20 / 21 β π( B ) β π½ β β β β β β A B 0.7β π 1 β π 2 β β β β β β β 0.5 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦
Value computation algorithm (example) π½ B A S π π πΏ S πΎ B 0 A β πΎ β β β β β β ( 0 B 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² 0 π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 π 4 ( π 2 , π 1 ) β π 5 () 0.5 0 0.1 β β π( A , S ) β πΏ( A ) β β β β β β 0.1β π 1 S β β β β β β β β 0.8β π 1 S β 20 / 21 β π( B ) β π½ β β β β β β A B 0.7β π 1 β π 2 β β β β β β β 0.5 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦
Value computation algorithm (example) π½ B A S π π πΏ S πΎ B 0 A β πΎ β β β β β β ( 0 B 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² 0 π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 0.7 β 0.5 β 0 max 0.1 0.5 0 0.1 β β π( A , S ) β πΏ( A ) β β β β β β 0.1β π 1 S β β β β β β β β 0.8β π 1 S β 20 / 21 β π( B ) β π½ β β β β β β A B 0.7β π 1 β π 2 β β β β β β β 0.5 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦
Value computation algorithm (example) π½ B A S π π πΏ S πΎ B 0 A β πΎ β β β β β β ( 0 B 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² 0 π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) π 3 π 2 π 1 0.1 0.5 0 0.1 β β π( A , S ) β πΏ( A ) β β β β β β 0.1β π 1 S β β β β β β β β 0.8β π 1 S β 20 / 21 β π( B ) β π½ β β β β β β A B 0.7β π 1 β π 2 β β β β β β β 0.5 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) = ( ) β¦ ( ) = ( ) β¦ β¦
Value computation algorithm (example) B S π π πΏ S πΎ π½ A B β πΎ β β β β β β β A ( β π( A , S ) 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² 0 π 4 ( π β² π 3 () π 1 ( π 2 ) β π 2 ( π 3 ) 0.1 0.5 0 0 0 0.1 B β β πΏ( A ) β β β β β 0.1β π 1 S β β β β β β β β 0.8β π 1 S β β β π( B ) β β β β β β 0.7β π 1 β π 2 A β π½ B β β β β β β 0.5 20 / 21 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) β¦ ( ) = ( ) β¦ β¦
Value computation algorithm (example) B S π π πΏ S πΎ π½ A B β πΎ β β β β β β β A ( β π( A , S ) 1 ) β π 5 () 2019-09-25 Richard MΓΆrbitz, Heiko Vogler: Weighted parsing for grammar-based language models (FSMNLP 2019) 3 π β² 2 π β² 1 π β² 2 , π β² 0 π 4 ( π β² π 3 () 0.8 β 0.5 max 0.1 β 0.1 0.1 0.5 0 0 0 0.1 B β β πΏ( A ) β β β β β 0.1β π 1 S β β β β β β β β 0.8β π 1 S β β β π( B ) β β β β β β 0.7β π 1 β π 2 A β π½ B β β β β β β 0.5 20 / 21 ((π», πβ± π£ β ), ( π , π , β , π»), wt ) β ((π», πβ± π£ β ), ( β 1 0 , 0, max , π» mul ), wt ) ) β¦ ( ) β¦ ( ) = ( ) β¦ β¦
Recommend
More recommend