Difference between revisions of "Mwreorder"
(→Usage) |
(Link to French page) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Mwreorder : outils de réorganisation des suites de mots|En français]] |
|||
''placeholder page for documentation of mwreorder program'' |
|||
{{TOCD}} |
|||
''describe what it is for'' |
|||
==Installation== |
==Installation== |
||
Line 7: | Line 7: | ||
;Downloading |
;Downloading |
||
In order to download the application, open terminal and type the following command: |
|||
# open your terminal |
|||
# there you must write |
|||
<pre> |
<pre> |
||
Line 16: | Line 13: | ||
</pre> |
</pre> |
||
Then wait a few moments and the application should be downloaded |
Then wait a few moments and the application should be downloaded to your present working directory (for ex. "~/multiword-reorder") |
||
;Compiling |
;Compiling |
||
First, navigate to the folder to which multiword-reorder has just been downloaded: |
|||
Use: |
|||
<pre> |
<pre> |
||
cd </path to folder> |
cd </path to folder> |
||
</pre> |
</pre> |
||
Before you build the program you will have to configure it first. |
|||
Use: |
Use: |
||
Line 33: | Line 29: | ||
</pre> |
</pre> |
||
In order to run this successfully, couple of libraries needs to be installed in the system. This includes liblttoolbox3-dev, pkg-config libxml2-dev, g++ and automake. Make sure you have these libraries installed - else the process might not complete. You can install these libraries by typing |
|||
When you run the command, you'll see lots of messages scrolling on your screen. This is normal and you shouldn't worry about it. If configure finds an error, it complains about it and exits.However, if everything works like it should a Makefile.am will be generated. |
|||
<pre> |
|||
⚫ | |||
sudo apt-get install [name of the library] |
|||
</pre> |
|||
⚫ | |||
<pre>make</pre> |
<pre>make</pre> |
||
Remember that "make" uses the Makefile.am for building the program. Otherwise it doesn't know what to do. This is why it's important to run the |
Remember that "make" uses the Makefile.am for building the program. Otherwise it doesn't know what to do. This is why it's important to run the "sh autogen.sh" successfully (or generate the Makefile some other way). |
||
Now it's time to install the program. When doing this you must be root. |
Now it's time to install the program. When doing this you must be root. Do it by executing following command: |
||
<pre> |
<pre>sudo make install</pre> |
||
When this finishes, you will have the software installed and ready to run! |
|||
command. It'll want your root password and then you're ready for the final step! |
|||
When you're root, you can install the program with this command: |
|||
<pre>make install</pre> |
|||
Again, you'll get some weird messages scrolling on the screen. After they stop, congrats: you've installed the software and you're ready to run it! |
|||
==Multidix reordering file== |
==Multidix reordering file== |
||
Line 63: | Line 58: | ||
''how to use the program in a translation pipeline'' |
''how to use the program in a translation pipeline'' |
||
==See also== |
|||
* [[User:Skh/Application_GSoC_2010#Project:_Improving_multiword_support_in_Apertium|Multiword project proposal]] |
|||
[[Category:Documentation]] |
[[Category:Documentation in English]] |
||
[[Category:Multiwords]] |
Latest revision as of 09:27, 6 October 2014
Installation[edit]
- Downloading
In order to download the application, open terminal and type the following command:
svn co https://apertium.svn.sourceforge.net/svnroot/apertium/branches/gsoc2010/skh/multiword-reorder
Then wait a few moments and the application should be downloaded to your present working directory (for ex. "~/multiword-reorder")
- Compiling
First, navigate to the folder to which multiword-reorder has just been downloaded:
cd </path to folder>
Before you build the program you will have to configure it first. Use:
sh autogen.sh
In order to run this successfully, couple of libraries needs to be installed in the system. This includes liblttoolbox3-dev, pkg-config libxml2-dev, g++ and automake. Make sure you have these libraries installed - else the process might not complete. You can install these libraries by typing
sudo apt-get install [name of the library]
After this runs without errors we can move into building the binary, executable program from the source code. This is done by running the make command:
make
Remember that "make" uses the Makefile.am for building the program. Otherwise it doesn't know what to do. This is why it's important to run the "sh autogen.sh" successfully (or generate the Makefile some other way).
Now it's time to install the program. When doing this you must be root. Do it by executing following command:
sudo make install
When this finishes, you will have the software installed and ready to run!
Multidix reordering file[edit]
how to write a multidix reordering file
Usage[edit]
First you need to download and install the pipeline. How to do that see here: http://wiki.apertium.org/wiki/Minimal_installation_from_SVN
If you have any problems with installing it you should see: http://wiki.apertium.org/wiki/Installation_Troubleshooting
how to use the program in a translation pipeline