Difference between revisions of "Mwreorder"

From Apertium
Jump to navigation Jump to search
(Link to French page)
 
(14 intermediate revisions by 4 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


If you want to download the application:
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 in your present working directory (for ex. "Home Folder")
Then wait a few moments and the application should be downloaded to your present working directory (for ex. "~/multiword-reorder")


;Compiling
;Compiling


For this first you will need to go to the folder you have downloaded.
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>


Now before you build the program you will have to configure it first.
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.
Building goes on with the following command:


<pre>make</pre>
<pre>
sudo apt-get install [name of the library]
</pre>


Now we finally got to building the binary, the executable program, from the source code. This is done by running the make command:
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:


<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 configure script successfully (or generate the Makefile some other way).
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:

<pre>sudo make install</pre>

When this finishes, you will have the software installed and ready to run!


==Multidix reordering file==
==Multidix reordering file==
Line 49: Line 52:


==Usage==
==Usage==
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''
''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

En français

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

See also[edit]