Skip to main content

No project description provided

Project description

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.

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

quick_processor-0.3.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

quick_processor-0.3-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file quick_processor-0.3.tar.gz.

File metadata

  • Download URL: quick_processor-0.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for quick_processor-0.3.tar.gz
Algorithm Hash digest
SHA256 71c864375c9ddb413ad947bb3de0fa02a6fc8912ee6630c79fd54730fed41946
MD5 39bc18cac0f0fd564fe3b77c11f54474
BLAKE2b-256 34516f8c531d3f342e95df867428b13a977f3e06c3d1bb7af6631647144a271c

See more details on using hashes here.

File details

Details for the file quick_processor-0.3-py3-none-any.whl.

File metadata

  • Download URL: quick_processor-0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for quick_processor-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2ac9b1688ce4093a7229111bb43e1f14931c9476d2dca1ed59e56aee29134cd2
MD5 d5574811ee1e8b5920cf6edc1b3a8266
BLAKE2b-256 60f3ad2ce384169e8844712878a2e0ef9a7f9aea89a6ceb81c9bf04fcc16ca11

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