Difference between revisions of "Apertium-regtest"
From LING073
(→Commands) |
|||
| Line 12: | Line 12: | ||
* To run apertium-regtest to access in a web browser: | * To run apertium-regtest to access in a web browser: | ||
| − | *: <code> | + | *: <code>$ apertium-regtest web</code> |
* To set up an ssh tunnel to a lab machine, if remote | * To set up an ssh tunnel to a lab machine, if remote | ||
*: <code>$ ssh -NL 3000:localhost:3000 machinename.cs.swarthmore.edu</code> (with the machine's name for <code>machinename</code>) | *: <code>$ ssh -NL 3000:localhost:3000 machinename.cs.swarthmore.edu</code> (with the machine's name for <code>machinename</code>) | ||
** Then you should be able to access http://localhost:3000 from the computer this command is run on. | ** Then you should be able to access http://localhost:3000 from the computer this command is run on. | ||
* To check the number of morph tests matching gold: | * To check the number of morph tests matching gold: | ||
| − | *: < | + | *: <code>$ apertium-regtest test -c .-morph</code> |
[[Category:tools]] | [[Category:tools]] | ||
Revision as of 14:42, 21 February 2023
The tool apertium-regtest is a "regression test" tool that helps to test large numbers of inputs simultaneously and to keep track of what has changed and what is still wrong.
General premise and structure
Apertium-regtest runs as a web client, a command-line interface, or simply checks tests on the command line.
When run from a transducer or translation directory, it checks the test/ directory for tests.
Each test consists of a list of inputs and a list of "gold" (i.e., correct) forms provided by the user, as well as a list of output forms generated by the software upon request and a list of expected forms, generated as the user interacts with the software
Commands
- To run apertium-regtest to access in a web browser:
-
$ apertium-regtest web
-
- To set up an ssh tunnel to a lab machine, if remote
-
$ ssh -NL 3000:localhost:3000 machinename.cs.swarthmore.edu(with the machine's name formachinename)
- Then you should be able to access http://localhost:3000 from the computer this command is run on.
-
- To check the number of morph tests matching gold:
-
$ apertium-regtest test -c .-morph
-