Project

General

Profile

Sentence Alignment Setup » History » Version 7

Vassilis Papavassiliou, 2014-09-09 03:12 PM

1 6 Prokopis Prokopidis
h1. Sentence Alignment Setup 
2 1 Prokopis Prokopidis
3 7 Vassilis Papavassiliou
For the generation of sentence alignments from bilingual crawls, ILSP-FC integrates the java sentence aligner provided at http://align.sourceforge.net/. Alternatively you can use an external aligner like hunalign.
4 6 Prokopis Prokopidis
5 6 Prokopis Prokopidis
For example, for the current version of ILSP-FC, you can   
6 6 Prokopis Prokopidis
7 6 Prokopis Prokopidis
* download the hunalign-1.2 source code from http://mokk.bme.hu/en/resources/hunalign/ 
8 1 Prokopis Prokopidis
* follow the instructions on the hunalign page for building hunalign
9 1 Prokopis Prokopidis
* put the hunalign directory containing the hunalign executable next to the runnable ilsp-fc jar. 
10 1 Prokopis Prokopidis
11 1 Prokopis Prokopidis
For example, if you run ilsp-fc from:
12 1 Prokopis Prokopidis
<pre>~/ilsp-fc/ilsp-fc-2.2-jar-with-dependencies.jar</pre>
13 1 Prokopis Prokopidis
14 6 Prokopis Prokopidis
you should do the following 
15 1 Prokopis Prokopidis
16 6 Prokopis Prokopidis
<pre>
17 6 Prokopis Prokopidis
cd ~/ilsp-fc/
18 6 Prokopis Prokopidis
wget ftp://ftp.mokk.bme.hu/Hunglish/src/hunalign/latest/hunalign-1.2.tgz
19 6 Prokopis Prokopidis
tar xvfz hunalign-1.2.tgz
20 6 Prokopis Prokopidis
cd hunalign-1.2/src/hunalign/
21 6 Prokopis Prokopidis
make
22 6 Prokopis Prokopidis
ln -sf hunalign-1.2 hunalign
23 6 Prokopis Prokopidis
</pre>
24 1 Prokopis Prokopidis
25 6 Prokopis Prokopidis
This should create hunalign/src/hunalign/hunalign with the suggested hunalign directory structure, including
26 5 Prokopis Prokopidis
27 6 Prokopis Prokopidis
<pre>~/ilsp-fc/hunalign/data/ 
28 6 Prokopis Prokopidis
~/ilsp-fc/hunalign/src/hunalign/hunalign</pre>
29 4 Prokopis Prokopidis
30 1 Prokopis Prokopidis
Now, you are ready to produce TMX files from bilingual crawled data using the <code>-align</code>, <code>-dict</code>, <code>-oft</code> and <code>-ofth</code> options described  in the [[GettingStarted|Getting Started]] part of the documentation.