This module is helful for removing daily use chatting and business words from any string.
Project description
Internet Words Remover
Internet Words Remover is a Python module that replaces common internet slang and abbreviations with their full forms. It can be used to clean text data containing informal language commonly used in chats, social media, and online communication.
Installation
You can install Internet Words Remover using pip:
pip install internet_words_remover
How to Use
from internet_words_remover import words_remover
text="OMG! It works! Osm"
cleaned=words_remover(text)
print(cleaned)
Output
oh my god It works! Awesome
Tokenization
If you are intrested to get tokens of your give string then use follow code.
from internet_words_remover import words_remover
text="OMG! It works! Osm"
cleaned=words_remover(text,is_token=True)
print(cleaned)
Output
['oh', 'my', 'god', 'It', 'works!', 'Awesome']
Bonus
It also works on pandas series
from internet_words_remover import words_remover
import pandas as pd
data={
'Name':['Qadeer'],
'Message':['Hi gm TIL something new. PTL']
}
df=pd.DataFrame(data)
df['Message'].apply(words_remover,is_token=True)
Output
['Hi', 'good', 'morning', 'today', 'I', 'learned', 'something', 'new.', 'praise', 'the', 'lord']
Catch me on
Thanks
Keep Learning and Exploring!
License: MIT
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
Built Distribution
File details
Details for the file internet_words_remover-3.1.1.tar.gz
.
File metadata
- Download URL: internet_words_remover-3.1.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3a53f7ae4c131ca227a488f20662aa1082d2b272e366d1f53694081d4125855 |
|
MD5 | 3d969b970268999b6f7de5754a15f61b |
|
BLAKE2b-256 | 06d9a2463582aeb0e889ab5c91b3e712a236ae8f0cd1c61b8d975cb9017fd2a6 |
File details
Details for the file internet_words_remover-3.1.1-py3-none-any.whl
.
File metadata
- Download URL: internet_words_remover-3.1.1-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a89e161603916a15230361cb86575f464aaa8ceb211fcce6e476b3e6a357c8f3 |
|
MD5 | 7efeb16950d75273cda5520b86c20b48 |
|
BLAKE2b-256 | 2434fe688b9c2ca6ba9536a99a431cf22e0bfbb1114b97cc1906d7257f7af02b |