[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
user:dusek:vystadial:templates [2012/10/03 11:33]
dusek
user:dusek:vystadial:templates [2012/10/03 11:53] (current)
dusek
Line 1: Line 1:
 ===== Template engine ===== ===== Template engine =====
  
-Konverze z dialogovych aktu do stringu.+Konverze z dialogovych aktu do stringu, ciste pravidlova.
  
  
Line 28: Line 28:
  
 Nektere muzou mit promenne, name:value. Navic muzou existovat i sjednoceni. Nektere muzou mit promenne, name:value. Navic muzou existovat i sjednoceni.
 +
 +==== Schema ====
 +                    vnejsi promenne (vyrecnost etc.)
 +                          `v
 +  dialogovy akt   ->     model   -> string / strom - >>>> surface realization
 +                           ^
 +    parser dat. formatu--'    \  
 +      YAML                     `-- inference
 +      JSON                         (spojovani, zamlcovani)
 +      Python code                   
 +      symbolic strings
 +
 +
 +==== Mapa aktu (model) - reprezentace ====
 +
 +Tuple:
 +  * **input** -- seznam dialogovych aktu, pro kazdy:
 +    * typ aktu (string)
 +    * parametry (dictionary -- name:value)
 +  * **output** -- cokoli, cemu bude rozumet surface realizator, ten to musi dostat spolu s promennymi. Vzdy se zas bude jednat o seznam, ne nutne stejne dlouhy jako predtim.
 +    * //stringy//: ''The @entity is $entity.''
 +    * //stromy//: Nejak vkladat promenne do stromu

[ Back to the navigation ] [ Back to the content ]