Classify email content by key-word mapping
Bounce Classification based on email text
with open('sample.txt','r') as f: email_text = f.read() bc = Bounce_classifier(email_text) # if the email text contains a diagonostic code, use diagonostic_code() dia_code, classification = bc.diagonostic_code() # if the email text does not contains a diagonostic code, use no_diagonostic_code() classification = bc.no_diagonostic_code()
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for BounceClassifier-0.3.3-py3-none-any.whl