Quality control framework/Usage

From Apertium
< Quality control framework
Revision as of 03:54, 8 May 2011 by Gekz (talk | contribs) (Created page with '== regtest.py == So far, the only truly usable piece of code is regtest.py. This is the regression test code for taking tests off the wiki and running it on an Apertium dictionar…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

regtest.py

So far, the only truly usable piece of code is regtest.py. This is the regression test code for taking tests off the wiki and running it on an Apertium dictionary. In the future, statistics will be records.

Usage

$ regtest.py <directory> <mode> <xml-url>

Example

$ regtest.py . br-fr http://wiki.apertium.org/wiki/Special:Export/Breton_and_French/Regression_tests

Output

$ regtest.py . br-fr http://wiki.apertium.org/wiki/Special:Export/Breton_and_French/Regression_tests
Now testing: br
br-fr	  Ar 6 den
WORKS	  Les 6 personnes
br-fr	  Kreñvaat koulz ha micherelaat ar c’helenn brezhoneg
	- Renforcer ainsi que professionnaliser l'enseignement de breton
	+ Renforcer ainsi que professionnaliser l'enseignement de breton Été @bezañ @FMAINV> en train de présenter la à lui