Alignment tool based on fast_align
Project description
systran-align
systran-align is a small alignment tool that is based on https://github.com/clab/fast_align.
Installation
pip install systran-align
Usage
import systran_align
Generating alignment probabilities
systran_align.generate_alignment_probabilities(
input_path: str,
forward_probs_path: str,
backward_probs_path: str,
verbose=False,
iterations=5,
favor_diagonal=False,
beam_threshold=-4,
diagonal_tension=4,
optimize_tension=False,
variational_bayes=False,
alpha=0.01,
no_null_word=False,
prob_align_null=0.08,
thread_buffer_size=10000)
Computing alignments
aligner = systran_align.Aligner(
forward_probs_path: str,
backward_probs_path: str)
alignments, forward_log_prob, backward_log_prob = aligner.align(
source: list,
target: list)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for systran_align-3.1.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64abb4afac5022516f2382373687b58a283897231cac95713b7ed67d6f5052b8 |
|
MD5 | 00efccc21e48b29107fea78635a0a4f4 |
|
BLAKE2b-256 | 53ad2b3c2ee75f36ad350e8fadc187fa773a8cf0cdd84f0718c625f88c872af2 |
Close
Hashes for systran_align-3.1.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b32fd98410bce0667669b1f2a6bf86570ea85b1e0fdccfa7c36b47a6e49050a1 |
|
MD5 | 9246c053e83d8b80b5001dd9bfed282c |
|
BLAKE2b-256 | fbf2b32bae7c3a28c0fb212a43b8e8e516ec22cd54a3f63755d768d72e6d0428 |
Close
Hashes for systran_align-3.1.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb522f19053ff28029a1c1256caec318adee9a776295cb9a52b0a957df6da808 |
|
MD5 | 0f6c82ff41b408fbac8df0b03dff28c7 |
|
BLAKE2b-256 | aaf72d56f444f73eb84f9d4a07e437b6857a3375a94952df9701abfbd50ddeb8 |
Close
Hashes for systran_align-3.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d00d2ab795d341c8bda88112e5e80ab74cd144b1ec80fcaba2e5a780c0ad74b1 |
|
MD5 | c37aae382cdbe78ea1513d0fd960a796 |
|
BLAKE2b-256 | c06bd26d004176063f82acc819de6c494b5838b4c946ea6f3320ed87eed2f72e |
Close
Hashes for systran_align-3.1.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6258475ae4265e16f47975a8c64283efe30e021d70196dc06b1cbdb98aa16868 |
|
MD5 | dbb5b0c59a6838bdc5b128cf8decc257 |
|
BLAKE2b-256 | ccc5c74df949e5036269b81a3de9fb2e7bd9c62519a50e829eefa182d14e6fc8 |
Close
Hashes for systran_align-3.1.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c5c1831fa5520b26e5359482a797e2ab7a327d73ccc48309471798ec2b3f5b1 |
|
MD5 | 27f44877bda7db40c929507c74022491 |
|
BLAKE2b-256 | e54cfa417f6970ee5f1e38b7165dfc4956db2b5c6b029282c7c419e1ed7231f0 |