Skip to main content

Supercharge text processing

Project description

Texy: A conservative text processing library


Python

A utility library for quickly cleaning texts

Installation

Python version in the dev environment: 3.11.5

pip install -U texy

Usage

Pipelines with parallelization in Rust:

>>> from texy.pipelines import extreme_clean, strict_clean, relaxed_clean
>>> data = ["hello ;/ from the other side 😊 \t "]
print(extreme_clean(data))
>>> ['hello from the other side']
print(strict_clean(data))
>>> ['hello ;/ from the other side']
print(relaxed_clean(data))
>>> ['hello ;/ from the other side 😊']

Parallelize custom functions with Python Multiprocessing:

from texy.pipelines import parallelize

def dummy(x):
    return [i[0] for i in x]

data = ["a ", "b ", "c ", "d ", "e ", "f ", "g ", "h ?."] * 100
print(parallelize(dummy, data, 2))

Actions

Pipeline Actions
relaxed_clean remove_newlines, remove_html, remove_xml, merge_spaces
strict_clean remove_newlines, remove_urls, remove_emails, remove_html, remove_xml, remove_emoticons, remove_emojis, remove_infrequent_punctuations, merge_spaces
extreme_clean remove_newlines, remove_urls, remove_emails, remove_html, remove_xml, remove_emoticons, remove_emojis, remove_all_punctuations, merge_spaces

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

texy-0.0.2a0.tar.gz (20.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

texy-0.0.2a0-cp37-abi3-musllinux_1_2_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ x86-64

texy-0.0.2a0-cp37-abi3-musllinux_1_2_armv7l.whl (2.1 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARMv7l

texy-0.0.2a0-cp37-abi3-musllinux_1_2_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARM64

texy-0.0.2a0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

File details

Details for the file texy-0.0.2a0.tar.gz.

File metadata

  • Download URL: texy-0.0.2a0.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.3.2

File hashes

Hashes for texy-0.0.2a0.tar.gz
Algorithm Hash digest
SHA256 ba536e5d37f63284e69715016452dc22ea0bbd368ce2a55313fd7e95afa60029
MD5 596a3629296dae895f62d6f327e0a8b1
BLAKE2b-256 0a025d61dfb98380f0c800a8895d34a39709b0d965d96bd81cceb9211d67b651

See more details on using hashes here.

File details

Details for the file texy-0.0.2a0-cp37-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for texy-0.0.2a0-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7ddb4f9e9e03dee198d83517031a9b6830ce67295531044cec1c97b865169a56
MD5 31e6db3faff0eb3e52a3866047aec469
BLAKE2b-256 132f9662ff1945a7d53ebc2353f6dce08139f143f23616dd2429cacb2828f500

See more details on using hashes here.

File details

Details for the file texy-0.0.2a0-cp37-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for texy-0.0.2a0-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 b054aafb717a6c175763b989a51fa5a3e85ab4179f7707774e4f985d9bf33edb
MD5 1c8e1c790e6fe5dbe5d7ab9307423ae3
BLAKE2b-256 ebd2adf1978fa08346fbf99b7c14713cbe88ce9f3b9393d3ec8afaee6430eaf1

See more details on using hashes here.

File details

Details for the file texy-0.0.2a0-cp37-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for texy-0.0.2a0-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 bc5c29859e556e45c178b1288bdcae12ddae67908548e08858b9972741eb9903
MD5 3449dd91635a00bb0256caf283d2a877
BLAKE2b-256 150315a806cecff1162ee8674969e19cee24a4c02177110c9b83e9922c3522c3

See more details on using hashes here.

File details

Details for the file texy-0.0.2a0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for texy-0.0.2a0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 70589e514807fdac722f2bdb6add28be00710016b57ee2edbb1462ec351312c3
MD5 6ade4bba16782e4261be41b5e0fc3e20
BLAKE2b-256 6133ad1f3287531566cbd503dec20e2d295b12709981b143702c5654b1a5a5fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page