Light-Aligner 



A light-weight aligner for dual-text (currently just English-Chinese) alignment based on similariy scores using word for word "translation"
中文版读我 https://github.com/ffreemt/light-aligner/blob/master/README-zh.md
Features
Light-weight, low resources demandLightningfast, well maybe notlightningfast but quite fast- No internet required
Special Dependencies
light aligner depends on polyglot that in turn depends on libicu
To install libicu
For Linux/OSX
E.g.
- Ubuntu:
sudo apt install libicu-dev - Centos:
yum install libicu - OSX:
brew install icu4c
Then use poetry or pip to install PyICU pycld2 Morfessor, e.g.
poetry add PyICU pycld2 Morfessor
or
pip install PyICU pycld2 Morfessor
For Windows
Download and install the pyicu and pycld2 (possibly also Morfessor) whl packages for your OS/Python version from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyicu and https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycld2 (possibly also Morfessor https://www.lfd.uci.edu/~gohlke/pythonlibs/)
Installation
pip install light-aligner
or, clone the repo and install necessary packages using pip:
git clone git@github.com:ffreemt/light-aligner.git
cd light-aigner
pip install -r requirements.txt
or, clone the repo and install necessary packages using poetry
git clone git@github.com:ffreemt/light-aligner.git
cd light-aigner
poetry install -v
light aligner can be run in Linux/OSX. In fact, the build process in github (pertaining to that github workflow badge is carried out in Linux.
Usage
cd light-aligner
python -m light_aligner
or
cd light-aligner
python light_aligner.__main__.py
You may wish to use powershell (e.g., right click the powershell scriptrun-python-m.ps1 and select Run with Powershell) or conemu or cmder for better visual terminal experience.
Join qq-group 316287378
if you have any questions. The group chat is normally in Chinese but can switch to English if so desired.
Metadata
Release files for light-aligner 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| light-aligner-0.1.4.tar.gz | 2.1 MB | Without provenance | Details for light-aligner-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| light_aligner-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for light_aligner-0.1.4-py3-none-any.whl |
Total release size: 4.3 MB
Release files / light-aligner-0.1.4.tar.gz
| Download URL | light-aligner-0.1.4.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed59a90611c99a3fe4055575d58316605fec8d51073de4a29b9e0ead528d9bdf
|
|
BLAKE2b-256 checksum How to use checksums |
0efd6d72c8f03d2f3543f784dc8798189860997538b8045ead87aeb0883f681d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.7.9 Windows/10
|
Release files / light_aligner-0.1.4-py3-none-any.whl
| Download URL | light_aligner-0.1.4-py3-none-any.whl |
|---|---|
| Size | 2.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cdf0e37c9b0fa4fe6ee35bf8d84b6f776bd727b696e09325c557c6d0e8b1d39f
|
|
BLAKE2b-256 checksum How to use checksums |
236059d7e43c55620115c0d2371eb7d04dca153ee4a3e9443cabd1956f2971f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.7.9 Windows/10
|
Security for light-aligner 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.