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)
| File | Size | Uploaded | |
|---|---|---|---|
| django-textclassifier-1.0.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 |