Gtester

Un article de Loria Wiki.

gtester is a test harness for benchmarking GenI and for debugging grammars. The eventual aim is to make it a multi-purpose test-harness-generator (*) , but for now the primary aim is GenI.

It is written in Python and is free software (released under GPL).

Sommaire

Getting/installing gtester

  1. code available upon request (Ask Eric Kow)
  2. put the gtester directory in your path
  3. make sure you have Python 2.4

Running gtester

  • gtester --help
  • Ask eric (kow at loria point fr) - we're (slowly!) working on documenting this
  • Note that you need to extract the test suite using geniExtractCases

GenI variants

  • base variants:
    • sim-2 - two phase
    • sim-1 - one phase
    • cky - CKY
    • ear - Earley
  • features (note: order is important!):
    • -(s)(r) - sem filter, root node filter (sim-2 only)
    • -p - polarity filtering
    • -nc - (anti-optimisation!) disable semantic constraints
    • -i - index accesibility filtering (n/a in sim-1)

Examples:

sim-2vanilla simple 2 phase
sim-2-psimple 2-phase with polarity filtering
sim-2-srsimple 2-phase with sem filter, root filter
sim-2-sr-psimple 2-phase with sem filter, root filter, pol filtering
sim-2-isimple 2-phase with index acc filtering
sim-2-sr-p-iack... sick of typing now

Etc

Not another foo-generator!

This goal isn't as silly as you might think. Gtester is actually just a fork of the HyLoRes test harness, so there is much potential for reuse in there)

See also

Récupérée de « http://wiki.loria.fr/wiki/Gtester »
Outils personels