Model implementing code.
More...
|
| working_model.mail_file = sys.argv[1] |
|
| working_model.features_matrix = mail_features(mail_file) |
|
| working_model.ml_model = pickle.load(open('spamfilter.sav', 'rb')) |
|
| working_model.result = ml_model.predict(features_matrix) |
|
Model implementing code.
This code reads mails individually and then classifies them using pre-trained model.
- Author
- Sudhanshu Dubey
- Version
- 1.0
- Date
- 25/6/19
- Parameters
-
mail_file | The full address of mail file. |
- Warning
- Is not suitable for classifying multiple emails. Use fast_multiple.py instead.
- Bug:
- No known bug.