
Dialog 001: The Utterances
Modeling Dialog using IBUKI types
The dialog is given to us as
an ordered set of natural language sentenses
We need some forn of NLP to change these into
something mor structured. This project assumes
this is done by some other system. We do define
some possible outputs such a system might produce,
We call these utterances.
A conversation is a sequence of urrerances
From each utterrance we determine one or more speech acts
A speech act is
the hearers understanding (capta) of the intended meaning
of the speakers utterance (data)
different listeners may derive different speech acts
after hearing the same utterance
Then a listener updates its world model
as a result of hearing the utterance
In our dialog are four [agent]s:
M (a medic) P1 (patient of M)
C (a computer (advisor to M on medical problems)
O (an observer who overhears a dialog between M and C)
and lots of 'things': eg (= I1 (injury-of P1))
[U1] We have an injured person.
[U2] Where is the injury?
[U3] He is bleeding from the left leg and torso.
[U4] How bad is the bleeding?
[U5] The leg is much worse.
[U6] Okay, use a tourniquet to stop the bleeding.
[U7] Right, where shall I put it?
[U8] Just below the joint above the wound.
Keep turning until it stops bleeding.
[U9] Okay, the bleeding has stopped.
====================================================================
[U1] We have an injured person.
(hears O (say M (that
(injured P1)
)))
-------------------------------------------------
; utterance
(1st C1 U1)
(isA U1 utterance)
(said-to U1 C)
(said-by U1 M)
(content-of U1 DS1)
(isA DS1 declarative-sentence)
(statement DS1 REL1)
(isA REL1 relation)
(relsym REL1 injured)
(arg1 REL1 P1)
(timestamp U1 T1)
-------------------------------------------------
; the resulting speech acts
(isA SA1-1 inform)
(from SA1-1 U1)
(content SA1-1 REL1)
(isA SA1-2 request-for-help)
(from SA1-2 U1)
(subject SA1-2 medical-problem)
====================================================================
[U2] Where is the injury?
(hears O (say C
(where-is the-injury)
)))
-------------------------------------------------
; utterance
(2nd C1 U2)
(isA U2 utterance)
(said-by U2 C)
(said-to U2 M)
(content-of U2 Q1)
(isA Q1 question-where-is)
(what Q1 the-injury)
(timestamp U2 T2)
-------------------------------------------------
; the resulting speech acts
(isA SA2 where-on-body)
(from SA2 U2)
(content SA2 I1)
(isA I1 injury)
(of I1 P1)
(type bleeding)
====================================================================
[U3] He is bleeding from the left leg and torso.
(hears O (say M (that (and
(breeding-from P1 left-leg)
(breeding-from P1 torso)
))))
-------------------------------------------------
; utterance
(3rd C1 U3)
(isA U3 utterance)
(said-by U3 C)
(said-to U3 M)
(content-of U3 A1
(isA A1 answer-where-is)
(amswer A1 CONJ1)
(conj-of CONJ1 REL2)
(relsym REL2 breeding-from)
(who REL2 P1)
(where REL2 left-leg)
(conj-of CONJ1 REL2)
(relsym REL3 breeding-from)
(who REL3 P1)
(where REL3 torso)
(timestamp U3 T3)
-------------------------------------------------
; the resulting speech acts
(isA SA3-1 answer-where-on-body)
(from SA3-1 U3)
(content SA3-1 REL2)
(isA SA3-2 answer-where-on-body)
(from SA3-2 U2)
(content SA3-2 REL3)
====================================================================
[U4] How bad is the bleeding?
(hears O (say C (that
(how-bad-is the-bleeding)
)))
-------------------------------------------------
; utterance
(4th C1 U4)
(isA U4 utterance)
(said-by U4 M)
(said-to U4 C)
(content-of U4 Q2)
(isA Q2 how-bad-is)
(what Q2 the-bleeding)
(timestamp U4 T4)
-------------------------------------------------
; the resulting speech acts
(isA SA4 question-which-is-larger)
(from SA4 U4)
(content SA4 Q2)
(isA Q2 question-which-is-larger)
(obj1 Q1 MT1)
(isA MT1 medical-thing)
(term MT1 the-bleeding)
(who MT1 P1)
(where MT1 left-leg)
(obj2 Q2 MT2)
(isA MT2 medical-thing)
(term MT2 the-bleeding)
(who MT2 P1)
(where MT2 TORSO)
====================================================================
[U5] The leg is much worse.
(hears O (say M (that
(much-worse left-leg)
)))
-------------------------------------------------
; utterance
(5th C1 U5)
(isA U5 utterance)
(said-by U5 C)
(said-to U5 M)
(content-of U5 (much-worse left-leg))
(timestamp U5 T5)
-------------------------------------------------
; the resulting speech acts
(isA SA5 answer-which-is-larger)
(from SA5 U5)
(content SA5 A2)
(isA A2 answer-which-is-larger)
(utterance A2 AS4)
(answer A2 MT1)
(degree-larger lots)
====================================================================
[U6] Okay, use a tourniquet to stop the bleeding.
(hears O (say C (that (and
"Okay"
(use a-tourniquet (to-stop the-bleeding))
))))
-------------------------------------------------
; utterance
(2nd C1 U6)
(isA U6 utterance)
(said-by U6 C)
(said-to U6 M)
(content-of U6 CS1)
(isA CS1 compond-sentence)
(part-of CS1 EXC1)
(isA EXC1 exclamation)
(words EXC1 "Okay")
(part-of CS1 CMD1)
(isA CMD1 action-command)
(to-do CMD1 AP1)
(isA AP1 action-phrase)
(name AP1 use)
(arg AP1 tourniquet)
(modifier AP1 RP1)
(isA RP1 reason-phrase)
(term1 RP1 to-stop)
(term2 RP1 the-bleeding)
(timestamp U6 T6)
-------------------------------------------------
; the resulting speech acts
(isA SA6-1 acknowledgement)
(from SA6-1 U6)
(content SA6-1 EXC1)
(what SA6-1 SA5)
(isA SA6-2 suggestion-to-act)
(from SA6-2 U6)
(content SA6-2 SA6-1)
(isA SA6-1 suggested-action)
(action SA6-1 ACT6-1)
(isA ACT6-1 medical-action)
(name AACT6-12 apply-tourniquet)
(to-whom P1)
(reason ACT6-1 REA6-1)
(isA REA6-1 reason)
(justify-goal REA6-1 (stopped 'the-bleeding P1)) )
====================================================================
[U7] Right, where shall I put it?
(hears O (say M (that (and
(exclamation "Right")
(question (where-do-i put the-tourniquet))
)))
-------------------------------------------------
; utterance
(7th C1 U7)
(isA U7 utterance)
(said-to U7 M)
(said-by U7 C)
(content-of U7 CS7-1)
(isA CS7-1 compound-sentense)
(part-of CS7-1 EXC7-1)
(isA EXC7-11 exclamation)
(words EXC7-1 "Right")
(part-of CS7-1 Q7-1)
(isA Q7-1 question-where-do-i)
(do-what Q7-1 put)
(what Q7-1 the-tourniquet)
(to-whom P1)
(timestamp U7 T7)
the NLP system figured out
The co-reference between 'it' and 'the-tourniquet'
The determinatiion of P1
-------------------------------------------------
; the resulting speech acts
(isA SA7-1 acknowledgement)
(from SA7-1 U7)
(content SA7-1 SA6-2)
(isA SA7-2 question-where-do-i)
(from SA7-2 U7)
(content SA7-2 Q7-1)
====================================================================
[U8] Just below the joint above the wound.
Keep turning until it stops bleeding.
(hears O (say C (that (and
(where-phrase (just-below (the-joint (below 'the wound))))
(commandl (keep turning (until (stopped 'the bleeding))))
))))
-------------------------------------------------
; utterance
(8th C1 U8)
(isA U8 utterance)
(said-to U8 M)
(said-by U8 C)
(content-of U8 CS8-1)
(isA CS8-1 compound-sentence)
(part-of CS8-1 WP8-1)
(isA WP8-1 where-phrase)
(location WP8-1 LOC8-1)
(isA LOC8-1 location-on-body)
(who LOC8-1 P1)
(place LOC8-1 PLACE8-1)
(isA PLACE8-1 place-on-body)
(on PLACE8-1 JOINT8-1)
(isA JOINT8-2 joint)
(part-of isA JOINT8-2 joint)
reply-to-question
suggestion-to-act )
(timestamp U8 T8)
-------------------------------------------------
; the resulting speech acts
(do apply-tourniquet
(do turn-torunequet
(reply-to-question U7
(isA SA8-1 reply-to-question)
(from SA8-1 U8)
(content SA8-1 ... )
(isA SA8-2 suggestion-to-act)
(from SA8-2 U8)
(content SA8-2 ... )
-------------------------------------------------
reply-to-question (with suggestion-to-act B)
====================================================================
[U9] Okay, the bleeding has stopped.
(hears O (say M (and
(alert "Okay")
(declarative-sentense (has-stopped the-bleeding))
)))
-------------------------------------------------
; utterance
(9th C1 U9)
(isA U9 utterance)
(said-by U9 M)
(said-to U9 C)
(content-of U9 CS9-1)
(isA CS9-1 compount-sentence)
(part-of CS9-1 ALERT9-1)
(isA ALERT9-1 alert)
(words ALERT9-1 "Okay")
(part-of CS9-1 DS9-1)
(isA DS9-1 declarative-sentense)
(subject DS9-1 the-bleeding)
(transitive-verb DS9-1 has-stopped)
(timestamp U9 T9)
-------------------------------------------------
; the resulting speech acts
(isA SA9-1 alert)
(from SA9-1 U9)
(content SA9-1 ... )
(isA SA9-2 satisfied-goal)
(from SA9-2 U9)
(content SA9-2 G9-1)
(isA G9-1 goal)
-------------------------------------------------
(stopped the-injury) ==> (stabalized P1)
acknowledgement +
goal-satisfaction
================================================================