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.2.tar.gz
.
File metadata
- Download URL: internet_words_remover-3.1.2.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 | d2d2ac580bbb18f1f0bd44ed0961de31194d866a21b77dd4aede6ea3d33765f1 |
|
MD5 | dd626e85c24d1ec0c9af31ddcbe43e46 |
|
BLAKE2b-256 | ebe71d9d799a177996b2027b7febef2aba07238c1c0fed9eb2b908d3f3c59c10 |
File details
Details for the file internet_words_remover-3.1.2-py3-none-any.whl
.
File metadata
- Download URL: internet_words_remover-3.1.2-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 | 7bf528ed11d78d8e5740cb16ab4177d91bf2b590a81c6ee451d53ff79cf28e7a |
|
MD5 | 0564aea1a85e439bf881ba74cf8edeec |
|
BLAKE2b-256 | b180beaf73968eb9265726606038b9a693b525332beb4b88f3a4a44822b27fa2 |