330 likes | 480 Views
Curs 1 1: A şteptări şi satisfacerea lor în parsarea discursului. Dan Cristea Selec ţie de sliduri. Expectations and Incremental Discourse Parsing. Cristea and Webber, EACL-1998 Cristea et al, Venice-2003 Cristea et al, CICLING-2005. Incremental discourse parsing.
E N D
Curs 11: Aşteptări şi satisfacerea lor în parsarea discursului Dan Cristea Selecţie de sliduri
Expectations and Incremental Discourse Parsing Cristea and Webber, EACL-1998 Cristea et al, Venice-2003 Cristea et al, CICLING-2005
Incremental discourse parsing The principle of sequenciality • A left to right reading of the terminal frontier of the tree associated with a discourse must correspond to the span of text it analyses in the same left-to-right order. 6
a ’ a a * a a1 1 0 0 1 Incremental discourse parsing - a TAG inspired approach Adjoining to the right frontier (Polanyi, 1988) 7
k. Although Bill would have wanted it, k+1. John sold his bicycle to somebody else. ’ k+1 k+1 k k Substitution in case of free expectations
EVIDENCE a EVIDENCE b ANT-CONS c ANT-CONS d e Expectations-driven incremental parsing a. Clinton is bound to win the elections. b. He is a natural born campaigner. c. If you hold some position on an issue, d. then if Clinton wants to get your vote, e. he will assure you with great sincerity that he holds that position too. (Cristea and Webber, 1998) 8
EVIDENCE * b a Expectations-driven incremental parsing a. Clinton is bound to win the elections. b. He is a natural born campaigner. 9
EVIDENCE EVIDENCE b * c a Expectations-driven incremental parsing a. Clinton is bound to win the elections. b. He is a natural born campaigner. c. If you hold some position on an issue, 10
EVIDENCE b EVIDENCE c a Expectations-driven incremental parsing a. Clinton is bound to win the elections. b. He is a natural born campaigner. c. If you hold some position on an issue, 11
EVIDENCE b EVIDENCE ANT-CONS c ? a Expectations-driven incremental parsing a. Clinton is bound to win the elections. b. He is a natural born campaigner. c. If you hold some position on an issue, 12
EVIDENCE EVIDENCE * ANT-CONS b c ? a Expectations-driven incremental parsing a. Clinton is bound to win the elections. b. He is a natural born campaigner. c. If you hold some position on an issue, 13
EVIDENCE EVIDENCE b ANT-CONS c ? a Expectations-driven incremental parsing a. Clinton is bound to win the elections. b. He is a natural born campaigner. c. If you hold some position on an issue, d. he will assure you with great sincerity that he holds that position too. 14
EVIDENCE EVIDENCE b ANT-CONS c d a Expectations-driven incremental parsing a. Clinton is bound to win the elections. b. He is a natural born campaigner. c. If you hold some position on an issue, d. he will assure you with great sincerity that he holds that position too. 15
EVIDENCE EVIDENCE b ANT-CONS ANT-CONS d ? c ? a Expectations-driven incremental parsing a. Clinton is bound to win the elections. b. He is a natural born campaigner. c. If you hold some position on an issue, d.then if Clinton wants to get your vote, 16
EVIDENCE EVIDENCE b ANT-CONS d c ANT-CONS a ? Expectations-driven incremental parsing a. Clinton is bound to win the elections. b. He is a natural born campaigner. c. If you hold some position on an issue, d.then if Clinton wants to get your vote, e.he will assure you with great sincerity that he holds that position too. 17
EVIDENCE EVIDENCE b ANT-CONS d c ANT-CONS a e Expectations-driven incremental parsing a. Clinton is bound to win the elections. b. He is a natural born campaigner. c. If you hold some position on an issue, d.then if Clinton wants to get your vote, e.he will assure you with great sincerity that he holds that position too. 18
because -, - 1 2 3 4 1 2 3 1 2 4 1 2 3 1 2 3 4 1 2 3 3 1 2 4 What can cue-phrases tell us about structure? [Because John is such a generous man1] [– whenever he is asked for money,2] [he will give whatever he has, for example3] [– he deserves the “Citizen of the year” award.4] Reproduced from (Cristea and Webber,1998) (Marcu, 1997, 2000; Cristea et al., 2003, 2005) because <something>, <something>
whenever -, - 2 3 4 2 3 2 3 2 3 4 What can cue-phrases tell us about structure? [Because John is such a generous man1] [– whenever he is asked for money,2] [he will give whatever he has, for example3] [– he deserves the “Citizen of the year” award.4] whenever <something>, <something>
-, - for example 1 2 3 1 2 3 2 3 2 3 1 What can cue-phrases tell us about structure? [BecauseJohn is such a generous man1] [– whenever he is asked for money,2] [he will give whatever he has,for example3] [– he deserves the “Citizen of the year” award.4] <something>, <something> for example
because -, - because -, - whenever -, - 1 4 -, - for example 1 whenever -, - -, - for example 4 because < >, < > because < >, < > 3 3 2 2 4 4 1 2 3 1 2 3 whenever < >, < > whenever < >, < > 4 2 3 2 3 < >, < > for example < >, < > for example 2 3 1 2 3 What can cue-phrases tell us about structure? [Because John is such a generous man1] [– whenever he is asked for money,2] [he will give whatever he has, for example3] [– he deserves the “Citizen of the year” award.4] There are only two trees that can be obtained after considering all constraints:
? because -, - * whenever -, - 1 2 The incremental generation of the first interpretation [Because John is such a generous man1] [– whenever he is asked for money,2]
? whenever -, - 2 3 The incremental generation of the first interpretation [Because John is such a generous man1] [– whenever he is asked for money,2] [he will give whatever he has, for example3] because -, - 1
? 4 The incremental generation of the first interpretation [Because John is such a generous man1] [– whenever he is asked for money,2] [he will give whatever he has, for example3] [– he deserves the “Citizen of the year” award.4] because -, - 1 whenever -, - 2 3
? The incremental generation of the first interpretation [Because John is such a generous man1] [– whenever he is asked for money,2] [he will give whatever he has, for example3] [– he deserves the “Citizen of the year” award.4] because -, - 4 1 whenever -, - 2 3
because -, - whenever -, - 1 2 The incremental generation of the second interpretation [Because John is such a generous man1] [– whenever he is asked for money,2]
whenever -, - -, - for example * 2 3 The incremental generation of the second interpretation [Because John is such a generous man1] [– whenever he is asked for money,2] [he will give whatever he has, for example3] because -, - 1
because -, - 4 whenever -, - 1 -, - for example 3 2 The incremental generation of the second interpretation [Because John is such a generous man1] [– whenever he is asked for money,2] [he will give whatever he has, for example3] [– he deserves the “Citizen of the year” award.4]
because -, - whenever -, - 1 -, - for example 4 3 2 The incremental generation of the second interpretation [Because John is such a generous man1] [– whenever he is asked for money,2] [he will give whatever he has, for example3] [– he deserves the “Citizen of the year” award.4]
because -, - because -, - right whenever -, - 1 4 -, - for example wrong 1 whenever -, - -, - for example 4 DEA=1 4 3 3 2 2 DEA=2 4 DEA=1 2 3 DEA=1 2 DEA=2 3 DEA=1 2 How can references help in discovering the structure? [Because John is such a generous man1] [– whenever he is asked for money,2] [he will give whatever he has, for example3] [– he deserves the “Citizen of the year” award.4]
c a b a b c wrong How can references help in discovering the structure? a. Because Mary was upset, b. even if John agreed, c. they didn’t speak to one another for several days. V=(a)c DEA=ac V=(a)(b)c DEA=abc right
Incremental parallel processing (Cristea et al., 2005) NP-chunker AR-engine disc. parser summarizer segmentator edts-builder
VT guides an incremental discourse parsing The tree resulted after parsing is the one which manifests: • the more natural overall references over the discourse structure • the smoothest overall CT transitions on veins (Cristea, 2000; Cristea et al., 2003, 2005)
N cohesion reference score coherence transitions score N The discourse parser implements a „beam search“ trees observing markers‘ well-formedness constraints