english-chinese dualtext aligner


License
MIT
Install
pip install ezbee==0.1.1

Documentation

ezbee

pytestpythonCode style: blackLicense: MIT PyPI version

Align en/zh texts, fast

Install it

Python 3.8 only

pip install ezbee
# or poetry add ezbee --alow-prerealeases
# pip install git+https://github.com/ffreemt/ezbee
# poetry add git+https://github.com/ffreemt/ezbee
# git clone https://github.com/ffreemt/ezbee && cd ezbee

Post- or Pre-install

pip install fastext
pip install pyicu==2.8 pycld2
pip install https://github.com/ffreemt/ezbee/raw/main/data/artifects/polyglot-16.7.4.tar.gz

In linux/macos, you may need to run (if the required packages are not already present in the system) something similar to

apt install libicu-dev

# or for macos
brew install icu4c
brew link icu4c --force
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
export LDFLAGS="-L/usr/local/opt/icu4c/lib"
export CPPFLAGS="-I/usr/local/opt/icu4c/include"

Refer to the pre-install part in workflow file: routine-tests.yml

For Windows without C++

e.g. for Python 3.8

cd data\artifects
pip install fasttext-0.9.2-cp38-cp38-win_amd64.whl pycld2-0.41-cp38-cp38-win_amd64.whl PyICU-2.8.1-cp38-cp38-win_amd64.whl
pip install https://github.com/ffreemt/ezbee/raw/main/data/artifects/polyglot-16.7.4.tar.gz

Use it

ezbee --help
# or python -m ezbee --help