Skip to main content

No project description provided

Project description

ccstuff

Polars plugins to apply gopher repetetition penalties and fasttext classifiers to text data.

polars_textproc.repetition_signals(expr) applies the gopher repetetition signals to each text in the given expr (e.g. a dataframe column). Returns a struct containing top_1_gram_char_ratio, ... top_4_gram_char_ratio, dup_5_gram_char_ratio ... dup_10_gram_char_ratio. The underlying tokenization can be controlled using the tokenizer_pattern kwargs, a regexp which by default is r"\w+". Note that the pattern is compiled by the rust regex crate, which doesn't match pythons re module.

polars_textproc.fasttext(expr, path, labels) applies the fasttext model at path to each text in the given expr (e.g. a column). By default it returns a struct with the fields top_label, top_score, and total_score. The returned values can be controlled with output_aggregate (default: True), and output_scores (default: False). With output_scores=True, the score for all supplied labels will be returned (with the label as the struct field name). With output_aggregate=False, top_label, top_score, and total_score will not be returned.

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

polars_textproc-0.1.3.tar.gz (32.6 kB view details)

Uploaded Source

Built Distributions

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

polars_textproc-0.1.3-cp38-abi3-win_amd64.whl (4.8 MB view details)

Uploaded CPython 3.8+Windows x86-64

polars_textproc-0.1.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.7 MB view details)

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

polars_textproc-0.1.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.3 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

polars_textproc-0.1.3-cp38-abi3-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

polars_textproc-0.1.3-cp38-abi3-macosx_10_12_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file polars_textproc-0.1.3.tar.gz.

File metadata

  • Download URL: polars_textproc-0.1.3.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.3

File hashes

Hashes for polars_textproc-0.1.3.tar.gz
Algorithm Hash digest
SHA256 72f34cf88a444682d54d8a6698a76a7252f1e197874c10e676305792bd2c73eb
MD5 0fc7518ad05cf77435bf7aa6db45f123
BLAKE2b-256 57758d7a265d6fef19e45e09379a2a24d860998192bae3edb15e7b52d06d0428

See more details on using hashes here.

File details

Details for the file polars_textproc-0.1.3-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for polars_textproc-0.1.3-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a0ea8f2844d50fc6456765736be13208f792596a6fff93d50bcc32c30debd868
MD5 6ad534666fb4f2071ff0f04df13e98fb
BLAKE2b-256 56f8edca0b39c9755d656c84874c66cdd4cda6c0db81e0d64b3d73d7307237d4

See more details on using hashes here.

File details

Details for the file polars_textproc-0.1.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for polars_textproc-0.1.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 808897daa72f3145bd62a62b7b6b294c4b601138a27b28f0b6f8b2a5bd831432
MD5 66211beeacbdd2150cce851b0cc022a8
BLAKE2b-256 f978e05a1e665f7fee9111c377f7a0308668b381e495b397600ad7a8f8d398c8

See more details on using hashes here.

File details

Details for the file polars_textproc-0.1.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for polars_textproc-0.1.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b0ee5984c44c3ee1fb26891af8faa2e80586a6fad5a5009dead6fe3fbb1b1497
MD5 d4bd14f79bd2e24f24d654c176919211
BLAKE2b-256 f5373659f8a65a8c2f5e9a657f199cab3c55a4753d5f07d8845fa4813a91597e

See more details on using hashes here.

File details

Details for the file polars_textproc-0.1.3-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_textproc-0.1.3-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2bdfb5915d5e646205ac6d6e7b9ba88caee539ec33447c144402e86b6200672a
MD5 df854b59f556b0fa84cc484ea09bc7d2
BLAKE2b-256 01e3232f310563a99859c2c1eeea9820071e964fdd0f9db260f099d1e9bc6191

See more details on using hashes here.

File details

Details for the file polars_textproc-0.1.3-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for polars_textproc-0.1.3-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8289066ea36b31cf0d5a08278232a4ad164523b257787448d5a090293703adf2
MD5 95089faaefb4f32a3e2d99d902e1f552
BLAKE2b-256 51d48b599d788ee43086d94e8dd470b5b3c620b235afc78b91e87873fd6ae18d

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