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.

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.2.tar.gz (29.5 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.2-cp38-abi3-win_amd64.whl (4.8 MB view details)

Uploaded CPython 3.8+Windows x86-64

polars_textproc-0.1.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.5 MB view details)

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

polars_textproc-0.1.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.2 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

polars_textproc-0.1.2-cp38-abi3-macosx_11_0_arm64.whl (4.6 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

polars_textproc-0.1.2-cp38-abi3-macosx_10_12_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for polars_textproc-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1323e51368cae0d4772b6f08814f137eaa9f667d30e5f01a7bf985513f03d6eb
MD5 50ae4e5c0396bc414828afd7ff25b25d
BLAKE2b-256 d049e034e2f929bdd1881f725205d480c016ecea2bb11c0a6377d55e350f2edb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_textproc-0.1.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f83965ad9a2c014c2e7c365e88fb2a201b0eaecfbbdbc7084c803ccdf500b2c3
MD5 4f618b95750a9fcb9686f406c1eb022c
BLAKE2b-256 41a90964397db8e0a6c3ac4f70ec764c2296efb3f47421b0f88b58e01f4c8e37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_textproc-0.1.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0dc8f02058f7f03108173e13c5d986b5c07eb90cf9e0241d6891bf50795cb550
MD5 1c4435711169a87240ce5d20595443c0
BLAKE2b-256 52c47f35757226103acae49434afd296d3a0c45e6190340b7cab8fa0c3ed9aab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_textproc-0.1.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2c769910552ac428571df02cee20838ad1d87fef318ba8078787ecec8dadf5a6
MD5 525550824e56b9bc58ded5712a349e21
BLAKE2b-256 9f20919fd230a90c6f0a8f31fb316f22e3b7279471b39839c218cb4011ec6137

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_textproc-0.1.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2d8805eeaa19ec52f37fbca11ac24be479476565a2c8991d0fe87f107011a17
MD5 8e25cbf84cf0bac9c48c322814c20c99
BLAKE2b-256 26c41b5956e2b2b5c8f3fe831f0823ef9c0940212a2a77589e15e0c7b797a9e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_textproc-0.1.2-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 55c29b8be124b0ba52cacee4ec1f0302e95a479517184226a9c3b23881072173
MD5 12dabe2f2e1eab34a67de28b1c36ad75
BLAKE2b-256 fee29cd37349d552e64f69312cc125661ef150f9691a2cbab5187a45a3af43f7

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