Skip to main content

Python Package: Filter

The Python package filter is used to detect and remove inappropriate information from text.

Installation

pip install filter

Features

  1. Regular expression filtering This method is used to find and filter out specific string patterns, such as personal information like phone numbers or email addresses, or words and phrases related to profanity.
  2. Dictionary-based filtering This method is used to filter out words that match with profanity or personal information already listed in a pre-built dictionary. While this method is quick to apply, it has the disadvantage of needing to be updated with new profanity or personal information.
  3. Machine learning-based filtering This method uses a machine learning model to identify sentences related to profanity or personal information. While this method is more accurate than others, it requires a lot of time and resources to train the model.
  4. Special character removal This method is used to remove special characters from strings that may contain personal information, such as phone numbers or email addresses. While this method is quick to apply, it may be difficult to handle exceptional cases.

One or a combination of the above methods can be used to implement an appropriate filtering method depending on the requirements of the application, and it should be validated in terms of performance and security.

Metadata

Release files for docfilter 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docfilter 0.1.0
File Size Uploaded
docfilter-0.1.0.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for docfilter 0.1.0
File Interpreter ABI Platform
docfilter-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 kB

Release files / docfilter-0.1.0.tar.gz

Download URL docfilter-0.1.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
543394a2180a1f5154bb4d2a2774141ee79b014211b58b90b6c4ec361a7f3b8e
BLAKE2b-256 checksum
How to use checksums
ac7a8a67cc0852028fecfcc65f503c07aaf5b5882d3bcee3b9c453f61df499e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release files / docfilter-0.1.0-py3-none-any.whl

Download URL docfilter-0.1.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d8062e832233ace6c69c66f2e91e3b2c610bc69531327986187f22d9d384d18
BLAKE2b-256 checksum
How to use checksums
d0170c3a307f9be21e4069cd8f361cb441ab5614ccb86862d6fc5195084a9472
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page