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.2.tar.gz (3.5 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.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: preprocess_nlp_jp18-0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for preprocess_nlp_jp18-0.2.tar.gz
Algorithm Hash digest
SHA256 353ef760060ab0889d8fb2cd59e41ae8884b589956ffa8a9751711febbbc7ce8
MD5 97ed3be6ae54b7e799e151533458762a
BLAKE2b-256 4cf715b90d006559b8999ed59c3dd1950d82e9724e556d1208794a8d7c881c53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for preprocess_nlp_jp18-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e26bd19c2e7d4b5434b694cff0b09ab6699da42c7dea3e7677492d91a122a560
MD5 1b225bab69d2c6f10318f8e106d1d5c1
BLAKE2b-256 7cf8aff91c14e0a4b163425b7018d4cc2111d15bd091a5f1704f4da1ef1e8db8

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