Difference between revisions of "Matxin linearisation with the statistical text generator"

From Apertium
Jump to navigation Jump to search
(Created page with "...")
 
Line 1: Line 1:

...
== Prerequisites ==

You will need Apache Ant, the Java Development Kit (JDK), and Java. On Ubuntu or any other Debian-based operating system, you can simply install the <code>ant</code> package from APT, and APT will automatically install Java and the JDK.

== Building ==

Once you have cloned the repository, simply run

<code>$ ant</code>

from its root directory. Ant will automatically compile and jar all the classes.

== Usage ==

We use Ant to run the project's programs. Ant, however, cannot forward command-line arguments to programs on its own, so we use a simple wrapper script.

<code>./run.sh [CLASS] [ARGS]...</code>

<code>CLASS</code> is the name of the main class---that is, the class that contains the <code>main</code> function that you want to execute.

Revision as of 03:25, 13 January 2017

Prerequisites

You will need Apache Ant, the Java Development Kit (JDK), and Java. On Ubuntu or any other Debian-based operating system, you can simply install the ant package from APT, and APT will automatically install Java and the JDK.

Building

Once you have cloned the repository, simply run

$ ant

from its root directory. Ant will automatically compile and jar all the classes.

Usage

We use Ant to run the project's programs. Ant, however, cannot forward command-line arguments to programs on its own, so we use a simple wrapper script.

./run.sh [CLASS] [ARGS]...

CLASS is the name of the main class---that is, the class that contains the main function that you want to execute.