![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
.. image:: logo.png :align: center :alt: Spotlight Data Logo
.. image:: https://readthedocs.org/projects/preprocessing/badge/?version=latest :target: http://preprocessing.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
Text pre-processing package to aid in NLP package development for Python3. With this package you can order text cleaning functions in the order you prefer rather than relying on the order of an arbitrary NLP package.
pip:
.. code-block:: console
pip install preprocessing
PyPI - You can also download the source distribution from:
https://pypi.python.org/pypi/preprocessing/ <https://pypi.python.org/pypi/preprocessing/>
_
You can then perform:
.. code-block:: console
pip install <path_to_tar_file>
on the tar file, or
.. code-block:: console
python setup.py install
on/inside, respectively, the extracted package to install preprocessing.
Once you have the package installed, implementing it with Python3 takes the following form:
.. code-block:: python
import preprocessing.text as ptext from preprocessing.text import keyword_tokenize, remove_unbound_punct, remove_urls
text_string = "important string at: http://example.com"
clean_string = ptext.preprocess_text(text_string, [ remove_urls, remove_unbound_punct, keyword_tokenize ])
print(clean_string) "important string"
Should the functions be performed in a different order (i.e. keyword_tokenize -> remove_urls -> remove_non_bound_punct) :
print(clean_string) "important string http example.com"
This package is comprised of a single module with no intended subpackages currently. The preprocessing package is dependent on NLTK for tokenizers and stopwords. However, ignoring this, the package only has built-in dependencies from Python 3.
If you feel like contributing:
Check for open issues <https://github.com/SpotlightData/preprocessing/issues>
_ or open a new issueCONTRIBUTORS.md <https://github.com/SpotlightData/preprocessing/blob/master/CONTRIBUTORS.md>
_This project is licensed under the MIT license (see LICENSE <https://github.com/SpotlightData/preprocessing/blob/master/LICENSE>
_)
FAQs
pre-processing package for text strings
We found that preprocessing 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.