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.5.tar.gz (11.6 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.5-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: preprocess_nlp_jp18-0.5.tar.gz
  • Upload date:
  • Size: 11.6 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.5.tar.gz
Algorithm Hash digest
SHA256 9ee192322352adfa79da4f7c66aebc6e1cbd8886780dedf8146648378cebd423
MD5 2200e296d355e160e8f6b1c050cb3f71
BLAKE2b-256 5fab74efed6c5df84ca330abb0592f632ea475724e52a5c36fd19929a01094af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for preprocess_nlp_jp18-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d5eb0cb6735099a964d33c14767b6eb4ece4978d012427699972d4c994d9423e
MD5 9ab9b08a8ace11701a2db8964a9e8026
BLAKE2b-256 d9d73ef31eb98668b3b0cac13a152de2f8515dcf3a617c6c8d8b323a8dd41873

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