Skip to content

GenerationModel

PetterHaugereid edited this page Sep 10, 2010 · 24 revisions

Status

This page is under development. Its objective is to show how a trigram model for generation ranking can be built. The first part is partly overlapping with DelphinTools and RedwoodsTop, and the second part describes a procedure made by ErikVelldal.

Preliminaries

The procedure requires three tools:

The installation of the CMU Toolkit may conflict with Logon, so you may need to comment out the Logon settings in the .bashrc temporarily file while the installation is going on.

Exporting trigrams from Logon

TSDBHOME=$LOGONROOT/lingo/lkb/src/tsdb/home
export PATH=$LOGONROOT/lingo/lkb/src/tsdb/home:$PATH

Creating the profiles

This step is needed if you do not have a profile. It shows how you can get a profile from the object sentences of a bilingual corpus file. (See also DelphinTools.)

logon_do --bitext PATH/TO/BILINGUAL/CORPUS/FILE $TSDBHOME/bitxt
logon_do --count 2 --limit 5 --grammar jaen --task omrs $TSDBHOME/bitxt

Exporting triples from the profiles

$TSDBHOME/export --binary  --condition "result-id=0" --format triples bitxt/omrs
Clone this wiki locally