Quick start with the Alignment API in Java

This is the very basic for starting with the Alignment API and checking that everything should be fine. Another quick start guide exists for the Alignment server. We also have an on-line tutorial on using the Alignment API and more systematic documentation.

Fetching the Alignment API and starting

Requirements

For using you will need a Java runtime environment (tested in 1.6). All other necessary libraries are available in the archive (see the list of libraries).

Fetching the ZIP'ed version

The simplest way to use the Alignment API is to get the lastest release zipfile from the site http://gforge.inria.fr/frs/?group_id=117. It contains all the sources, compiled library, required libraries.

Running

Running the program is achieved through:

$ java -jar lib/procalign.jar Two URIs required usage: Procalign [options] URI1 URI2 options are: --impl=className -i classname Use the given alignment implementation. --renderer=className -r className Specifies the alignment renderer --output=filename -o filename Output the alignment in filename --params=filename -p filename Reads parameters from filename --alignment=filename -a filename Start from an XML alignment file --threshold=double -t double Filters the similarities under threshold --cutmethod=hard|perc|prop|best|span -T hard|perc|prop|best|span method for computing the threshold --debug[=n] -d [n] Report debug info at level n -Dparam=value Set parameter --help -h Print this message Alignment API implementation 3.2 ($Id$)
Congratulations, you are done. We invite you to learn more by using the tutorial and the documentation.

Details below are for developing with the Alignment API.

Package content

Whatever your mode of getting the Alignment API you will get an alignapi directory containing the following subdirectories:

Developing with the Alignement API

Requirements

For extending you will need a Java compiler (tested in Java standard edition 1.6). Other libraries are included. It is also very usefull to have Ant.

Compilation and use

Generating the jar-files corresponding to the Alignment API can be achieved by launching:

$ ant jar
This recompiles the necessary files.

Only compiling the necessary files is obtained by:

$ ant compile

Recompiling all files is achieved by:

$ ant compileall

Executing the tests:

$ ant test

Checking all java warnings and other static analysis tools:

$ ant lint

Clean up what has been generated:

$ ant clean

Other options may be obtained by ant usage or through inspecting the build.xml file.

Typical development with the API

We can distinguish four types of developments in the API:

In theory, only the first aspect requires recompiling and modifying the Alignment API code. However, it may be useful for other aspects (for instance for debugging).

Documentation

Most documentation is available from here. An exception is the javadoc which is only available on your local machine. It can be recompiled by:

$ ant javadoc


http://alignapi.gforge.inria.fr/align.html

$Id$