Metadata-Version: 2.1
Name: fuzzy-text-classifier
Version: 1.5.0
Summary: A fuzzy classifier for natural language text
Home-page: https://github.com/raffaellopaletta/ftc
Author: Raffaello Paletta
Author-email: raffaellopaletta@gmail.com
License: UNKNOWN
Description: # FTC - Fuzzy Text Classifier
        
        A fuzzy classifier library for natural language text.
        [Github-Repo](https://github.com/raffaellopaletta/ftc)
        
        
        ### Simple usage example
        
        ```python
        #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. 
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
