Bootstrap Apertium language modules and pairs
Project description
# Apertium-Init (a.k.a. Apertium Bootstrap)
[](https://travis-ci.org/apertium/apertium-init) [](https://pypi.org/project/apertium-init/) [](https://pypi.org/project/apertium-init/)
Bootstrap Apertium language modules and pairs using apertium-init.py.
## Usage
First, <a href=”https://raw.githubusercontent.com/apertium/bootstrap/master/apertium-init.py” download>download the script</a> or install from [PyPi](https://pypi.org/project/apertium-init/) with pip install apertium-init.
Usage depends on the desired module and is described below. Remember to search for TODO in the generated module to add example sentences, etc.
### Monolingual Lttoolbox module
To bootstrap a monolingual language module apertium-foo using the [lttoolbox](http://wiki.apertium.org/wiki/Lttoolbox) formalism,
python3 apertium-init.py foo
To bootstrap and compile it at the same time,
python3 apertium-init.py foo && ( cd apertium-foo/ && ./autogen.sh && make )
### Monlingual HFST module
To bootstrap a monolingual language module apertium-foo using the [HFST](http://wiki.apertium.org/wiki/HFST) formalism,
python3 apertium-init.py foo –analyser=hfst
To bootstrap and compile it at the same time,
python3 apertium-init.py foo –analyser=hfst && ( cd apertium-foo/ && ./autogen.sh && make )
### Bilingual Lttoolbox module
To bootstrap a bilingual language module apertium-foo-bar where the monolingual packages apertium-foo and apertium-bar both use the [lttoolbox](http://wiki.apertium.org/wiki/Lttoolbox) formalism,
python3 apertium-init.py foo-bar
To bootstrap and compile it at the same time,
python3 apertium-init.py foo-bar && ( cd apertium-foo-bar/ && ./autogen.sh && make test)
### Bilingual HFST/Lttoolbox module
To bootstrap a bilingual language module apertium-foo-bar where the monolingual packages apertium-foo and apertium-bar use the [HFST](http://wiki.apertium.org/wiki/Lttoolbox) formalism and/or the [lttoolbox](http://wiki.apertium.org/wiki/Lttoolbox) formalism,
python3 apertium-init.py foo-bar –analysers=hfst # Both foo and bar use HFST python3 apertium-init.py foo-bar –analyser1=hfst # Only foo (first language) uses HFST python3 apertium-init.py foo-bar –analyser2=hfst # Only bar (second language) uses HFST
To bootstrap and compile it at the same time,
python3 apertium-init.py foo-bar –analysers=hfst && ( cd apertium-foo-bar/ && ./autogen.sh && make test) # Both foo and bar use HFST python3 apertium-init.py foo-bar –analyser1=hfst && ( cd apertium-foo-bar/ && ./autogen.sh && make test) # Only foo (first language) uses HFST python3 apertium-init.py foo-bar –analyser2=hfst && ( cd apertium-foo-bar/ && ./autogen.sh && make test) # Only bar (second language) uses HFST
## Development
After updating vanilla files, run ./updateBootstraper.py to update the relevant encoded files in apertium-init.py. Or, run make in the root of the repository to update all the encoded files.
You can also do sudo make install to install to /usr/local/bin/apertium-init or e.g. PREFIX=$HOME/local make install to install to $HOME/local/bin/apertium-init.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file apertium-init-2.1.1.tar.gz.
File metadata
- Download URL: apertium-init-2.1.1.tar.gz
- Upload date:
- Size: 156.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72720dcbd185039dae9228b0c8385b9a6c2f802e673af8f354e1a0aa32528e5d
|
|
| MD5 |
2291aba1a9fe7521be663d9810f0c556
|
|
| BLAKE2b-256 |
58ee9046aae78816b352af27e4c3492ead89f8c7a70f6d23ed7183aa8e1ab1a3
|
File details
Details for the file apertium_init-2.1.1-py3-none-any.whl.
File metadata
- Download URL: apertium_init-2.1.1-py3-none-any.whl
- Upload date:
- Size: 74.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38a4f6f9508cf6cc264483baac37506ab5be8cd4863e1655bb31252dcbe2cd48
|
|
| MD5 |
c059258a25a02e7b462be8516f88e4c0
|
|
| BLAKE2b-256 |
5e1ec037620f67e972f68abbd4a47a06503a1786c030cc511d5d5dbaa96debe2
|