Difference between revisions of "Spring 2017/MorphTests2yaml"
From LING073
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | You can install '''morphTests2yaml''' as follows: | ||
| + | <pre> | ||
| + | cd ~/Source | ||
| + | git clone git@github.swarthmore.edu:Ling073-sp17/tools.git | ||
| + | cd tools | ||
| + | sudo make install | ||
| + | </pre> | ||
| − | + | You can scrape <code><NOWIKI>{{morphTest}}</NOWIKI></code>s from any page on this wiki like this: | |
| − | + | morphTests2yaml "Language/Grammar" -l xyz | |
| − | |||
| − | + | Put the file in a <code>tests/</code> directory in your transducer repo and commit the file. | |
| − | + | == Debugging == | |
| + | * If you get an error about "no module named requests" or similar, run this command to install a couple python modules that the script needs and then try again: | ||
| + | sudo apt-get install python3-requests python3-yaml | ||
| + | |||
| + | [[Category:Tools]] | ||
| + | [[Category:Spring 2017]] | ||
| + | [[Category:Old versions of pages]] | ||
Latest revision as of 19:01, 23 November 2020
You can install morphTests2yaml as follows:
cd ~/Source git clone git@github.swarthmore.edu:Ling073-sp17/tools.git cd tools sudo make install
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.
Debugging
- If you get an error about "no module named requests" or similar, run this command to install a couple python modules that the script needs and then try again:
sudo apt-get install python3-requests python3-yaml