Customizing the Deployment Package for a Smaller REX Footprint
The REX release package includes all available language models. It is possible to repackage REX so that only required language models are included.
Files in the following directories are common to all languages and required:
data/etc/regex/xxx/* (Language-neutral regex)
Each language requires files in the following directories:
To create minimal package for the relevant languages, run the python script
bin/repack-rex.py with python 2.7 or later.
% python repack-rex.py
Copyright (c) 2017 Basis Technology Corporation All Rights Reserved.
This script repacks REX for languages specified in the script arguments.
usage: rex-distro-zip output-zip rlp-license-file lang [lang ...]
To create English-only REX distribution package zip:
python repack-rex.py downloaded-rex-distro.zip eng-only.zip rlp-license.xml eng