Skip to main content

FTC - Fuzzy Text Classifier

A fuzzy classifier library for natural language text. Github-Repo

Simple usage example

#import library
from fuzzy_text_classifier import TextClassifier  

#instantiate class
tc = TextClassifier()

#train the classifier with some documents
doc1 = 'some text document about sport'
doc2 = 'another text document about cinema'
doc3 = 'another one text document music'

tc.train(doc1, 'sport')
tc.train(doc2, 'cinema')
tc.train(doc3, 'music')

#classify a document
doc = 'a document about sport to classify'
ranking = tc.classify(doc)

ranking will be an object like

[{'sport': 1.0}, {'cinema': 0.6666666666666666}, {'music': 0.3333333333333333}]

a list ordered by similarity where the key is the category and the value is the degree of similarity between the document and the category.

Release files for fuzzy-text-classifier 1.5.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 fuzzy-text-classifier 1.5.0
File Size Uploaded
fuzzy-text-classifier-1.5.0.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fuzzy-text-classifier 1.5.0
File Interpreter ABI Platform
fuzzy_text_classifier-1.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 kB

Release files / fuzzy-text-classifier-1.5.0.tar.gz

Download URL fuzzy-text-classifier-1.5.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c35218b20175ac31191c9597071a5b94903e3159fcf0cd8b6acc304d614c7199
BLAKE2b-256 checksum
How to use checksums
8dca6807053966b6387b7875b73bb47c10635fccf84217b42453f0819eb25e12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release files / fuzzy_text_classifier-1.5.0-py3-none-any.whl

Download URL fuzzy_text_classifier-1.5.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df81e43aab737d579002d46242ea2db424c27f09f8f556a856591d887d12a019
BLAKE2b-256 checksum
How to use checksums
b76ab9d29e2a3e514cde7a264467dd728627e708e03fb4937a2dda0800777965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

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