Skip to main content

django-textclassifier

Validators and some utility functions for validating fields using a naive bayesian text classifier, provided by TextBlob

Usage

Add this application to your Django project:

INSTALLED_APPS = [
    ...
    'textclassifier',
    ...
]

You’ll also need to set the data file source in your settings:

TEXTCLASSIFIER_DATA_FILE = '/tmp/test.json'

Data file

The data file needs to be written by hand for now as well. It is read using the TextBlob JSON formatter

The file should use the labels spam and valid:

[
    {"text": "This is spam", "label": "spam"},
    {"text": "This is valid", "label": "valid"}
]

Metadata

Release files for django-textclassifier 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 django-textclassifier 1.0
File Size Uploaded
django-textclassifier-1.0.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-textclassifier 1.0
File Interpreter ABI Platform
django_textclassifier-1.0-py2-none-any.whl Python 2 none any Details

Total release size: 9.1 kB

Release files / django-textclassifier-1.0.tar.gz

Download URL django-textclassifier-1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0286f572ef59bbb29374b190fd78bb6a75415a0c62b6fed47b62d23f688b0018
BLAKE2b-256 checksum
How to use checksums
ed94f8df423db8e9582617b5b4fbce72b42e69965d6823dec60e34709a8d0e82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_textclassifier-1.0-py2-none-any.whl

Download URL django_textclassifier-1.0-py2-none-any.whl
Size 5.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
9d89f98e9c0677db150c4971d6f6e4ff4d7d7ef5665e4b35a74fc1bfd224648c
BLAKE2b-256 checksum
How to use checksums
b17eb86a5b15d6508ade4e77274253270416ee227cbd7be9f14d0f5f83107b53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

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