Skip to content

LogonProcessing_BatchGeneration

ErikVelldal edited this page Jun 12, 2008 · 14 revisions

Overview

This document describes how to perform batch generation within LOGON. In extension of this it also describes how to produce a generation treebank on the basis of an existing ERG treebank. We first give a step-by-step descripton of how to do this using only menu choices from the podium. Then show how the same steps can be carried out from the command-line using the generate script provided in the LOGON source tree (i.e. $LOGONROOT/generate).

Using the menu options

For the podium approach, there are two main steps; 1) generate and 2) update. In the first step we exhaustively generate all "paraphrases" for the input MRS. In the update step we identify and label the references among these alternative realizations by matching them against the references in the original parse treebank.

1) Generation

  • Load the grammar: (from the LKB top panel) Load | Complete grammar (and choose for example logon/lingo/erg/lkb/script to load the latest ERG grammar)

  • Initialize the generator: (from the LKB top panel): Options | Expand menu, and then Generate | Index

  • Select appropriate skeletons (e.g. english): (from the [incr tsdb()] podium) Options | Skeleton Root

  • Select the skeleton you want to use and create the target profile: File | Create

  • Select the corresponding gold profile

  • Select generation as batch processing mode: Process | Switches | Generation

  • Optionally set the maximum number of edges (e.g. 50000): Process | Variables | Chart size limit

  • Generate: Process | All Items

2) Update


  • In this step we identify and label the references among the newly generated sets of paraphrases. First we set some switches controlling how the realizations are matched against the references of the original parse treebank:

    • Trees | Switches | Update Exact Match

      Trees | Switches | Preterminal Yield

  • Then perform the labeling step: Trees | Update

Using the command-line script

The procedure described above can also be performed using the $LOGONROOT/generate script, which also makes some additional options available. We document the command-line options below, as well as some of related and relevant Lisp varibles.

Clone this wiki locally