Skip to content

LogonVpm

FrancisBond edited this page Jun 23, 2006 · 17 revisions

Variable Property Mapper

Note: this page describes code-in-progress, not yet released (2006-06-23). Do not try this at home.

The variable property mapper maps features and their values.

Consider a grammar which stores information about natural gender in a feature PNG.PN, with values (masc|fem|neut), that wishes to publish these in the SEM-I as the feature NATGEND, with features (m|f|n). This could be done as follows:

PNG.GEN : NATGEND 
  masc <> m 
  fem  <> f 
  neut <> n 
  *    << ! 
  !    >> * 
  • <> maps values reversibly

  • >> maps from grammar to SEM-I

  • << maps from SEM-I to grammar

  • * does what???

  • ! does which???

The mapping is bidirectional, in parsing the transformation will be left to right, and in generation from right to left.

Information is normally written in a file semi.vpm and loaded from the lkb/script:

(mt:read-vpm (lkb-pathname (parent-directory) "semi.vpm") :semi)

ToDo

  • Check the documentation.
  • Does this work with pet?
  • Give some more example mappings
Clone this wiki locally