SUREGEN-II
 
 
SUREGEN-II
in a nutshell

3. text generation "knowledge" (cont'd)

(ToDescribe :a Thing :as :NP
:use (noun-phrase :noun “Ding” :pronoun :neutral))
(ToDescribe :a Thing :as :MC 
  :use (main-clause 
  :subject (noun-phrase :noun “Ding” :pronoun :neutral)
  :predicate “existieren”))

(„Ding“ = „thing“, „existieren.“= „to exist“)

are paraphrases of the above examples, now built “from scratch”.
These “syntacticized” formulations may be fleshed out:

(ToDescribe :a Thing :as :NP 
  :use (noun-phrase :noun “Ding” 
  :pronoun :neutral 
  :adjective (my :colour)))

(ToDescribe :a Thing :as :MC 
  :use (main-clause 
  :subject (noun-phrase :noun “Ding” 
  :pronoun :neutral 
  :adjective (my :colour))
  :predicate “existieren”))

(ToDescribe :a Thing :as :MC 
  :use (main-clause 
  :subject (noun-phrase :noun “Ding” 
  :pronoun :definite
  :adjective (my :colour))
  :predicate “existieren”))

Now the description uses the function my to refer to the (user accessible) slot colour, giving descriptions such as

“ein blaues Ding”(„a blue thing“) or
“Ein blaues Ding existiert.”(“A blue thing exists.”)
“Das blaue Ding existiert.”(“The blue thing exists.”)

provided that the colour slot contains “blau” (“blue”). The flexion form of the adjective depends on 
The PrepareMeal-example may illustrate use of other objects’ descriptions:

(SuregenConcept P_PrepareMeal :is-a SuregenProcess 
:has-intern ((SP :are (P1_buyFood P2_cook P3_setTable))))

(ToDescribe :a P_PrepareMeal 
:use (Sentences (DescribeS (First (my :SP)) :as :MC)
(DescribeS (Second (my :SP)) :as :MC)
(DescribeS (Third (my :SP)) :as :MC)))

DescribeS returns an objects’ description in the appropriate form as specified by the :as-parameter. Calling DescribeS inToDescribe –forms effectively builds up a net (hopefully acyclic) ofincreasingly complex descriptions. In this way an entire medical procedure, say an appendectomy can be defined by its subprocesses such that

(DescribeS I-appendectomy :as :text)

generates the surgical report.
As mentioned earlier on, it is possible to force the description of only a certain facet of an instance to be described. How this is to be done must of course be defined previously with ToDescribe:

(ToDescribe :the colour :of-a Thing :as :MC 
:use (main-clause 
:subject (noun-phrase :noun “Ding” 
:pronoun :definite)
:predicate “sein”
:adverb (my :colour)))

(DescribeS I-thing :facet :colour :as :MC)
=> “Das Ding ist blau.”

(„sein“ = „to be“, „Das Ding ist blau.“= „The thing is blue“)

previous: text generation "knowledge"   up (home)   next: morphosyntacticals