Difference between revisions of "Misc tools"
From LING073
(→lexccounter) |
|||
| Line 15: | Line 15: | ||
== lexccounter == | == lexccounter == | ||
| + | This script counts the number of unique entries in a lexc file. | ||
$ lexccounter apertium-xyz.xyz.lexc | $ lexccounter apertium-xyz.xyz.lexc | ||
Revision as of 15:53, 20 February 2018
You can install miscellaneous tools, like morphTests2yaml and lexccounter, as follows:
cd ~/ling073 git clone git@github.swarthmore.edu:Ling073-sp18/tools.git cd tools make install
morphTests2yaml
You can scrape {{morphTest}}s from any page on this wiki like this:
morphTests2yaml "Language/Grammar" -l xyz
Put the file in a tests/ directory in your transducer repo and commit the file.
lexccounter
This script counts the number of unique entries in a lexc file.
$ lexccounter apertium-xyz.xyz.lexc Unique entries: 127