Metadata-Version: 2.1
Name: bigram_spam_classifier
Version: 0.0.3
Summary: A bigram approach for classifying Spam and Ham messages
Home-page: https://github.com/Kabilesh93/bigram-spam-classifier
Author: Kabilesh
Author-email: 
License: UNKNOWN
Description: # bigram-spam-classifier
        A bigram approach for classifying Spam and Ham messages
        
        #install with pip 
        pip install bigram-spam-classifier
        
        #import in your python file
        from bigram_spam_classifier import spamclassifier
        
        #create an object of the classifier and pass your message as the parameter
        classifier = spamclassifier.classifier("Customer service annoncement. You have a New Years delivery waiting for you. Please call 07046744435 now to arrange delivery")
        
        #classify the message
        cls = classifier.classify()
        
        print(cls)
        
        #find the unigrams and bigrams in the message 
        unigrams = classifier.inputUnigrams
        
        print(unigrams)
        
        bigrams = classifier.inputBigrams
        
        print(bigrams)
        
        #find the bigram probabilities of Spam and Ham 
        spam_probability = classifier.bigramPSpam
        
        print(spam_probability)
        
        ham_probability = classifier.bigramPHam
        
        print(ham_probability)
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
