Difference between revisions of "Misc tools"

From LING073
Jump to: navigation, search
m (Jwashin1 moved page MorphTests2yaml to Misc tools)
Line 1: Line 1:
−
You can install '''morphTests2yaml''' as follows:
+
You can install miscellaneous tools, like '''morphTests2yaml''' and '''lexccounter''', as follows:
 
<pre>
 
<pre>
 
cd ~/ling073
 
cd ~/ling073
Line 6: Line 6:
 
make install
 
make install
 
</pre>
 
</pre>
 +
 +
== morphTests2yaml ==
  
 
You can scrape <code><NOWIKI>{{morphTest}}</NOWIKI></code>s from any page on this wiki like this:
 
You can scrape <code><NOWIKI>{{morphTest}}</NOWIKI></code>s from any page on this wiki like this:
Line 11: Line 13:
  
 
Put the file in a <code>tests/</code> directory in your transducer repo and commit the file.
 
Put the file in a <code>tests/</code> directory in your transducer repo and commit the file.
 +
 +
== lexccounter ==
 +
 +
$ lexccounter apertium-xyz.xyz.lexc
 +
Unique entries: 127
  
  

Revision as of 15:52, 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

$ lexccounter apertium-xyz.xyz.lexc 
Unique entries: 127


2017 version of this page