Difference between revisions of "Morphological analyser/Setup"

From LING073
Jump to: navigation, search
Line 1: Line 1:
 +
Install <code>morph-test</code> and <code>morphTests2yaml</code>:
 
<pre>
 
<pre>
 
cd ~/Source
 
cd ~/Source
Line 6: Line 7:
 
</pre>
 
</pre>
  
 +
Install <code>apertium-init</code>:
 
<pre>
 
<pre>
 
cd ~/Source
 
cd ~/Source
Line 13: Line 15:
 
</pre>
 
</pre>
  
 +
Initialise a language module with apertium-init:
 
<pre>
 
<pre>
 
cd ~/Source
 
cd ~/Source
Line 22: Line 25:
 
</pre>
 
</pre>
  
 +
Scrape your tests:
 
<pre>
 
<pre>
 
cd ~/Source
 
cd ~/Source

Revision as of 10:21, 9 February 2017

Install morph-test and morphTests2yaml:

cd ~/Source
git clone git@github.swarthmore.edu:Ling073-sp17/tools.git
cd tools
sudo make install

Install apertium-init:

cd ~/Source
git clone git@github.com:goavki/bootstrap.git
cd bootstrap
sudo make install

Initialise a language module with apertium-init:

cd ~/Source
apertium-init -a hfst eng
cd apertium-eng
git init ./
git add *
git commit

Scrape your tests:

cd ~/Source
cd apertium-eng
mkdir tests
cd tests
wget http://unicode.org/udhr/d/udhr_eng.txt
morphTests2yaml "Morphological_analyser/Exercises" -l eng