- HFST:
apt-get install hfst
- Hunspell:
apt-get install libhunspell-dev
- OpenJDK 11 JDK:
apt-get install openjdk-11-jdk
git-lfs
: [Requires root] Can be installed by running the installation script- [Without root] If you download the
git-lfs
binary for your operating system and put it in thePATH
(eg. in~/bin
and addPATH="$HOME/bin:$PATH"
into.bashrc
) - [Without
git-lfs
] You can choose to omit installinggit-lfs
if you useemtsv.download()
ordownload_models.py
to download large files directly
- [Without root] If you download the
- UTF-8 locale is set by default. Can be checked by typing
locale
. Lines should end with '.UTF-8'.
- Initialize Git LFS:
git lfs install --skip-repo
command should writeGit LFS initialized.
- Clone the repo with submodules and LFS objects (it takes about 3 minutes):
git clone --depth=1 --recurse-submodules https://github.com/nytud/emtsv
- Note: Do not clone all history if it is not needed, as you may run into errors e.g.
This repository is over its data quota.
because old LFS entries referring to ppke-nlpg repositories
Note: You don't have to install all modules, only the ones you intend to use in emtsv
pip3 install cython
- Required for
PyJNIus
(PurePOS
,emDep
,emCons
) and it must be installed in a separate step
- Required for
pip3 install -r requirements.txt
pip3 install -r embert/requirements.txt
With the provided Dockerfile
(see docker
folder for other files used in the docker image):
docker build -t emtsv:stable .
or
make dbuild
make dbuildtest drun dtest
- Update version in __init__.py
- Create docker image (optionally test it as described above):
make dbuild
- If everything is right, create a release commit (e.g. commit the change in
__init__.py
) - Login to dockher hub:
docker login
- Push the images:
docker push mtaril/emtsv:[VERSION_HERE]
anddocker push mtaril/emtsv:latest