Difference between revisions of "Matxin linearisation with the statistical text generator"
(Created page with "...") |
|||
(4 intermediate revisions by the same user not shown) | |||
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 == |
|||
First, clone the repository. |
|||
<code>$ git clone https://github.com/m5w/tg.git</code> |
|||
Then, simply run Ant. |
|||
<code>$ ant</code> |
|||
Ant will compile all the classes to the <code>build</code> directory and jar them to <code>dist/lib/tg.jar</code>. Ant can also generate the documentation to the <code>doc</code> directory. |
|||
<code>$ ant doc</code> |
|||
However, very little of the code is documented, so this is not particularly useful. |
|||
== Usage == |
|||
We also use Ant to run the project's programs. Ant, however, cannot directory forward command-line arguments to programs, 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. The programs themselves do not appear to be very well-documented, so I have simply compiled a list of all possible main classes: |
|||
* commata.Evaluator |
|||
* commata.Tagger |
|||
* dsynt2synt.Convert |
|||
* dsynt2synt.Evaluator |
|||
* dsynt2synt.Mapper |
|||
* dsynt2synt2.Convert |
|||
* dsynt2synt2.Evaluator |
|||
* dsynt2synt2.Mapper |
|||
* dsynt2syntP.Convert |
|||
* dsynt2syntP.Evaluator |
|||
* dsynt2syntP.Mapper |
|||
* morph2.Main |
|||
* morph2.StringEdit |
|||
* move.Main |
|||
* sem2syn.DSyntConverter |
|||
* sem2syn.Main |
|||
* sem2syn.SemConverter |
|||
* sem2syn2.DSyntConverter |
|||
* sem2syn2.Main |
|||
* sem2syn2.SemConverter |
|||
* syn2lin2.Main |
|||
* syn2lin2b.Main |
|||
* syn2lin3.Lin |
|||
* syn2lin4.Main |
|||
* syn2lin5.Main |
|||
* syn2lin6.Main |
|||
* syn2lin6b.Main |
|||
* syn2lin6c.Main |
|||
* syn2lin7.Main |
|||
* tag7.Evaluator |
|||
* tag7.Tagger |
|||
* util.ConvertDS |
|||
* util.ConvertSSynt |
|||
* util.Converter |
|||
* util.Evaluate |
|||
* util.Evaluator |
Latest revision as of 20:54, 15 January 2017
Prerequisites[edit]
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[edit]
First, clone the repository.
$ git clone https://github.com/m5w/tg.git
Then, simply run Ant.
$ ant
Ant will compile all the classes to the build
directory and jar them to dist/lib/tg.jar
. Ant can also generate the documentation to the doc
directory.
$ ant doc
However, very little of the code is documented, so this is not particularly useful.
Usage[edit]
We also use Ant to run the project's programs. Ant, however, cannot directory forward command-line arguments to programs, 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. The programs themselves do not appear to be very well-documented, so I have simply compiled a list of all possible main classes:
- commata.Evaluator
- commata.Tagger
- dsynt2synt.Convert
- dsynt2synt.Evaluator
- dsynt2synt.Mapper
- dsynt2synt2.Convert
- dsynt2synt2.Evaluator
- dsynt2synt2.Mapper
- dsynt2syntP.Convert
- dsynt2syntP.Evaluator
- dsynt2syntP.Mapper
- morph2.Main
- morph2.StringEdit
- move.Main
- sem2syn.DSyntConverter
- sem2syn.Main
- sem2syn.SemConverter
- sem2syn2.DSyntConverter
- sem2syn2.Main
- sem2syn2.SemConverter
- syn2lin2.Main
- syn2lin2b.Main
- syn2lin3.Lin
- syn2lin4.Main
- syn2lin5.Main
- syn2lin6.Main
- syn2lin6b.Main
- syn2lin6c.Main
- syn2lin7.Main
- tag7.Evaluator
- tag7.Tagger
- util.ConvertDS
- util.ConvertSSynt
- util.Converter
- util.Evaluate
- util.Evaluator