Skip to main content
Spotlight Data Logo

‘preprocessing’

Documentation Status

Summary

Text pre-processing package to aid in NLP package development for Python3. With this package you can order text cleaning functions in the order you prefer rather than relying on the order of an arbitrary NLP package.

Installation

pip:

pip install preprocessing

PyPI - You can also download the source distribution from:

https://pypi.python.org/pypi/preprocessing/

You can then perform:

pip install <path_to_tar_file>

on the tar file, or

python setup.py install

on/inside, respectively, the extracted package to install preprocessing.

Example

Once you have the package installed, implementing it with Python3 takes the following form:

import preprocessing.text as ptext
from preprocessing.text import keyword_tokenize, remove_unbound_punct, remove_urls

text_string = "important string at: http://example.com"

clean_string = ptext.preprocess_text(text_string, [
    remove_urls,
    remove_unbound_punct,
    keyword_tokenize
])
>>> print(clean_string)
"important string"

Should the functions be performed in a different order (i.e. keyword_tokenize -> remove_urls -> remove_non_bound_punct) :

>>> print(clean_string)
"important string http example.com"

Organisation

This package is comprised of a single module with no intended subpackages currently. The preprocessing package is dependent on NLTK for tokenizers and stopwords. However, ignoring this, the package only has built-in dependencies from Python 3.

Contributing

If you feel like contributing:

  • Check for open issues or open a new issue

  • Fork the preprocessing repository to start making your changes

  • Write a test which shows the bug was fixed or that the feature works as expected

  • Send a pull request and remember to add yourself to CONTRIBUTORS.md

License

This project is licensed under the MIT license (see LICENSE)

Metadata

Release files for preprocessing 0.1.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for preprocessing 0.1.13
File Size Uploaded Provenance Actions
preprocessing-0.1.13.tar.gz 14.8 kB Without provenance Details for preprocessing-0.1.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for preprocessing 0.1.13
File Interpreter ABI Platform Actions
preprocessing-0.1.13-py3-none-any.whl Python 3 none any Details for preprocessing-0.1.13-py3-none-any.whl

Total release size: 364.4 kB

Release files / preprocessing-0.1.13.tar.gz

Download URL preprocessing-0.1.13.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4c6ef9f4b94bf02664fc4c6bdc3814dfc17a94bbbde002f2a9113c91fdfe7f87
BLAKE2b-256 checksum
How to use checksums
e3ca102f0cb754c3dfdd095110711faa8566c66fa857fa0ffd2c3040ab2d8a81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / preprocessing-0.1.13-py3-none-any.whl

Download URL preprocessing-0.1.13-py3-none-any.whl
Size 349.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7323b9bd514f676019b3bd5d97360df0cc7262a58fb7eee6e80e87a1894c7f15
BLAKE2b-256 checksum
How to use checksums
79f9cadc71dbd774398e486f0608fb6746de36f562edf32fc59ebbe94a589c79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for preprocessing 0.1.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.13 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page