
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Text-Cleaner is a utility library for text-data pre-processing. Use it before passing the text data to a model.
website <https://yugantm.github.io/textcleaner/>
__ - for more
main_cleaner to do all the below in one call ! or
remove unnecessary blank lines
stip out a perticular character or default one
transfer all characters to lowercase if needed
remove numbers, symblos and stop-words from the whole text
tokenize the text-data on one call
stemming & lemmatization powered by NLTK
The goal is to make basic cleaning of data hassle free. Most of the developers who are working with text data have faced this situation where data is not consumable and they end up wasting their time on these issues rather than fine tunning the model and get better accuracy. In that scenario this library can be useful and save you a tone of time.
Tech
textcleaner uses a number of open source projects to work properly:
- `NLTK <https://www.nltk.org/>`__ - for advanced cleaning
- `REGEX <https://pypi.org/project/regex/>`__ - for regular expression
And of course textcleaner itself is open source with a `public
repository <https://github.com/YugantM/textcleaner>`__ on GitHub.
Installation
textcleaner requires Python 3.x <https://www.python.org/downloads/>
__
to run.
Install the dependencies if you have not already installed it!
documentation <https://www.nltk.org/install.html>
__\ ].. code:: sh
pip install regex
.. code:: sh
pip install textcleaner
or
.. code:: sh
pip install textcleaner==0.4.26
Usage
.. code:: python
import textcleaner as tc
tc.main_cleaner('<FILE_NAME>')
#or
tc.document('<FILE_NAME>')
Above command will convert the text file into list of words with
cleaning. Default response of the function is list of list use *op*
argument and set it to 'words' and you will get a flat list of words.
Todos
MIT
Free Software, Hell Yeah!
FAQs
textcleaner: text-data pre-processing library
We found that textcleaner demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.