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 |
[modifier]
Getting/installing gtester
- code available upon request (Ask Eric Kow)
- put the gtester directory in your path
- make sure you have Python 2.4
[modifier]
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
[modifier]
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-2 | vanilla simple 2 phase |
| sim-2-p | simple 2-phase with polarity filtering |
| sim-2-sr | simple 2-phase with sem filter, root filter |
| sim-2-sr-p | simple 2-phase with sem filter, root filter, pol filtering |
| sim-2-i | simple 2-phase with index acc filtering |
| sim-2-sr-p-i | ack... sick of typing now |
[modifier]
Etc
[modifier]
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)
[modifier]
