Skip to main content

This is a text preprocessing package

Project description

Text Preprocessing Python Package

Installation from PyPi

You can install this package using pip as follows:

pip install preprocess_nlp_jp18

Installation from GitHub

You can install this package from GitHub as follows:

pip install git+https://github.com/jayesh1802/preprocess_nlp.git --upgrade --force-reinstall

Uninstall the Package

To uninstall the package, use the following command:

pip uninstall preprocess_nlp

Requirements

You need to install these python packages.

pip install spacy==3.7.6
python -m spacy download en_core_web_sm==3.7.1
pip install nltk==3.9.1
pip install beautifulsoup4==4.12.2
pip install textblob==0.18.0.post0

How to Use the Package

1. Basic Text Preprocessing

Lowercasing Text

import preprocess_nlp_jp18 as ps

text = "HELLO WORLD!"
processed_text = ps.to_lower_case(text)
print(processed_text)  # Output: hello world!

Expanding Contractions

import preprocess_nlp_jp18 as ps

text = "I'm learning NLP."
processed_text = ps.contraction_to_expansion(text)
print(processed_text)  # Output: I am learning NLP.

Removing Emails

import preprocess_nlp_jp18 as ps

text = "Contact me at example@example.com"
processed_text = ps.remove_emails(text)
print(processed_text)  # Output: Contact me at 

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

preprocess_nlp_jp18-0.7.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

preprocess_nlp_jp18-0.7-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file preprocess_nlp_jp18-0.7.tar.gz.

File metadata

  • Download URL: preprocess_nlp_jp18-0.7.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for preprocess_nlp_jp18-0.7.tar.gz
Algorithm Hash digest
SHA256 becf4021cd1a620acd9bb12baa88a8e19e8184a9d73709d9ecac1b19e1d7149c
MD5 5c69f30d61933e427b358adb1126bded
BLAKE2b-256 f9a5f13244dd30755793a34b8a41f69bc63c833b2d13259fc1ec39bf86db9d16

See more details on using hashes here.

File details

Details for the file preprocess_nlp_jp18-0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for preprocess_nlp_jp18-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7d66c08c22d13ceeb5e2d2a491a8a37f49e8fff3482d9db9de327c4641c57fa1
MD5 3f738abe6faf6aad0d78bf10e07ab7c0
BLAKE2b-256 c79308df4fdb5088e926e860faa1e451dce69c0685a6e39299a87679be44950e

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