quick_processor
Overview
quick_processor is a Python-based text preprocessing tool designed to simplify and standardize text cleaning tasks for Natural Language Processing (NLP) applications. It leverages a variety of libraries, including NLTK, BeautifulSoup, and contractions, to provide a comprehensive suite of text cleaning functions.
Features
- Lowercase Conversion: Converts all characters in a sentence to lowercase.
- Email Removal: Removes email addresses from the text.
- Diacritic Removal: Strips diacritics from characters.
- HTML Cleaning: Removes HTML tags from the text.
- Repeated Character Replacement: Replaces repeated punctuation marks with a single occurrence.
- Emoji Translation: Translates emojis into their textual representation.
- Contraction Expansion: Expands common contractions (e.g., "can't" to "cannot").
- URL Removal: Strips URLs from the text.
- Possessive Removal: Removes possessive forms from words.
- Extra Space Removal: Eliminates extra spaces.
- Spelling Correction: Corrects spelling errors.
- Tokenization: Splits text into tokens.
- Stopword Removal: Removes common stopwords.
- Lemmatization: Reduces words to their base or root form.
- Emoticon Removal: Removes emoticons from the text.
- Non-Alphabetic Character Removal: Strips non-alphabetic characters from the text.
Usage
Here's an example of how to use quick_processor for text preprocessing:
from quick_processor import Preprocessor
# Initialize the preprocessor
preprocessor = Preprocessor()
# Sample sentence
sentence = "This is a sample sentence with an email@example.com and a link http://example.com 😊"
# Clean the sentence using default steps
cleaned_sentence = preprocessor.clean(sentence)
print(cleaned_sentence)
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
With quick_processor, you can streamline your text preprocessing tasks, making your NLP pipeline more efficient and effective.
Metadata
Release files for quick-processor 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quick_processor-0.3.tar.gz | 6.0 kB | Without provenance | Details for quick_processor-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quick_processor-0.3-py3-none-any.whl | Python 3 | none | any | Details for quick_processor-0.3-py3-none-any.whl |
Total release size: 12.3 kB
Release files / quick_processor-0.3.tar.gz
| Download URL | quick_processor-0.3.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71c864375c9ddb413ad947bb3de0fa02a6fc8912ee6630c79fd54730fed41946
|
|
BLAKE2b-256 checksum How to use checksums |
34516f8c531d3f342e95df867428b13a977f3e06c3d1bb7af6631647144a271c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.4
|
Release files / quick_processor-0.3-py3-none-any.whl
| Download URL | quick_processor-0.3-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ac9b1688ce4093a7229111bb43e1f14931c9476d2dca1ed59e56aee29134cd2
|
|
BLAKE2b-256 checksum How to use checksums |
60f3ad2ce384169e8844712878a2e0ef9a7f9aea89a6ceb81c9bf04fcc16ca11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.4
|
Security for quick-processor 0.3
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.