A Language Processing Utility
Project description
LPU
LPU
is a collection of utility classes/functions for language processing
Installation
Installing from PyPI release
$ pip install --user lpu
Installing from GitHub master
$ pip install --user https://github.com/akivajp/lpu/archive/master.zip
Modules
modules in lpu
package
lpu.common.config
inheritable and serializable configurutation classes, useful for calling functions with many arguments
lpu.common.environ
handling environment variables with stacks, useful for changing/reverting global settings, such as debugging modes
lpu.common.files
utility functions for file handling, including transparent file access of gzip files
lpu.common.logging
enhanced logging objects (from standard logging library) with colorizing features and operations with environment variables
lpu.common.progress
utility classes and functions for progress reporting (as known as progress bars), working with file-type objects and iterators
lpu.smt.align.ibm_models
utility classes to train and estimate word alignemt based on IBM models
Commands
LPU package also includes directly executable commands
commands in lpu
package
lpu-abspath
$ lpu-abspath [-h] filepath [filepath ...]
get absolute paths of given files or directories
lpu-clean-parallel
$ lpu-clean-parallel [-h] [--min min_length] [--max max_length] \
[--ratio ratio] [--target-directory directory_path] [--escape] \
[--normalize] filepath [filepath ...] output_tag
lpu-dialog
$ lpu-dialog [-h] [--exist filepath] [--continue] [--yes] [--no]
Show message on condition, wait and receive user's response
lpu-exec-parallel
$ lpu-exec-parallel [-h] [--input filepath] [--output filepath] \
[--splitsize num_lines] [--chunks num_files] [--threads num_threads] \
[--tmpdir directory_path] [--verbose] [--interval seconds] command
Execute command in multiple processes by splitting the targe file
lpu-guess-langcode
$ lpu-guess-langcode [-h] filepath [filepath ...]
Guess the language codes from given files
lpu-progress
$ lpu-progress [-h] [--lines] [--refresh seconds] [--header string] \
[filepath filepath ...]]
Show the progress of pipe I/O
lpu-random-split
$ lpu-random-split [-h] --input filepath [filepath ...] \
[--prefixes prefix [prefix ...]] [--suffixes suffix [suffix ...]] \
--tags tag [tag ...] --split-sizes size [size ...] [--ignore-empty] \
[--quiet] [--debug] [--random-seed seed] [--ids [suffix]]
lpu-wait-files
$ lpu-wait-files [-h] [--quiet] [--debug] [--delay seconds] \
[--interval seconds] [--timeout seconds] filepath [filepath ...]
Wait until file will be found
lpu-word-align-train
$ lpu-word-align-train [-h] [--save-sores filepath] [--decode-align filepath] \
[--iteration-limit num_iterations] [--threshold min_probability] \
[--nbest integer] [--character] [--debug] [--quiet] \
src_path trg_path save_trans_path [save_align_path]
lpu-word-align-score
$ lpu-word-align-score [-h] [--save-scores filepath] \
[--decode-align filepath] [--character] [--debug] [--quiet] \
src_path trg_path trans_path [align_path]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for lpu-0.2.9-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f399387b0c6049ebaa64837c4a934c3d31dc60fe4004619e114ee54b303adce |
|
MD5 | bfd8c0a6b0bf7fdc579056ce9c747ff5 |
|
BLAKE2b-256 | d1374c7e2d35e2660388e17f5413ab0903b5fcb074ec0c1c534ae1dc7f4a6af3 |
Hashes for lpu-0.2.9-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60110b903f416504dfb509bbe6b54c158fe277da3bdd0e6d738ed18f7684c9a9 |
|
MD5 | d213fc92600a8e1ec3c9b49f98286dd4 |
|
BLAKE2b-256 | e8e46b1e1f8cd416fe673fd812e10c4d64e51c96bab24f72e81bac1a5e76d552 |
Hashes for lpu-0.2.9-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d73737392848930991ac6057abc7d75f3428a2feb2765b796c50a972f81c2df |
|
MD5 | 72518dc3fe05f2dae5d6a0ce38c447ea |
|
BLAKE2b-256 | d47ded4cf6b8e29c911a4b341ed25bed934ddc7529cc5479c406831a29348142 |
Hashes for lpu-0.2.9-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6047b17527d34a9e536e5a271362ea1a68b7103a20460036af0a0e7f5c3b4064 |
|
MD5 | e23f3d3927c7cb7ca087d31f1ff1ca22 |
|
BLAKE2b-256 | 67e37b0281d8843965503038c3d48e8e2c9b7f2671ab8fbafd2c983893395e20 |
Hashes for lpu-0.2.9-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff96af1c545347f5008b9eba911ee9e54c7766492230f0b7fc72b68f740a1b7a |
|
MD5 | fca616e5110aa5ed79e1eedc3efbd6d5 |
|
BLAKE2b-256 | 9f1d53b0952d2aa898f850c6888b2b8ca6b0bac9b817a86e3a0254d9ea81a3d8 |
Hashes for lpu-0.2.9-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5847bdbdab1207b823ebc382ec2747844fe8863e1457ce63a12264a8227e09ce |
|
MD5 | 408b3327c19a1cc7a571e237783cbf0a |
|
BLAKE2b-256 | 7f67068e93539d42a000037bcef6997c148e2327356557b4bf5ec1d1512ceafd |
Hashes for lpu-0.2.9-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fe4972e9b037355c930e1f405c1e83dfc54706d4cbb1629d08b61803319f387 |
|
MD5 | 921aee1d10a08be89b55468ebb15985b |
|
BLAKE2b-256 | c4f5cfde68b3ee78475500ff1e36620db6984ec3e44da26cd0fc8fe2a2ca3e5a |
Hashes for lpu-0.2.9-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79bd1274ef06470620b6932edcce2edd28414ad8f2553783d37f953670c978e8 |
|
MD5 | dbe09cb7db076689f3c40c878085dfdf |
|
BLAKE2b-256 | b72925f3b570e5467985dbcb46c8721d083f8577c86adefc1c4df89205af8c4b |