Automatic email classification (important/unimportant)

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
Joost van Gils
Posts: 19
Joined: 20 Mar 2014 09:00

Automatic email classification (important/unimportant)

Post by Joost van Gils » 24 Jul 2014 06:57

This flow takes the k9 email subject and classifies it as important or unimportant. Important mails will be read aloud. Classification is done through text mining by storing the email subjects (standard:the last 50 mails, but you can edit this in the first Action of the flow) and their words as a learn set. Each time a subject is classified, the flow learns from the learnset and the probability of the words being important or unimportant is calculated using the Bayes algorithm (the lowest 2 actions in the flow will reveil the magic...).

Start the flow manually (or send yourself an email without a subject ;) ) to maintain the classified subjects. The flow will learn from your corrections.

!!Important!!
Please be aware that you must maintain the email classification a few times before your emails are categorized correctly. At first all received emails will be classified as "important". You must manually select a few emails and categorize them as "unimportant", so the flow can learn from your input.
Attachments
flow_Categorize_email_subjects_with_Bayes.xml
(47.96 KiB) Downloaded 1255 times

ZSasha
Posts: 103
Joined: 11 Oct 2013 03:48

Re: Automatic email classification (important/unimportant)

Post by ZSasha » 24 Jul 2014 22:09

WOW! What a tremendous job!! :shock:

angelatwork
Posts: 186
Joined: 12 Feb 2014 01:45

Re: Automatic email classification (important/unimportant)

Post by angelatwork » 25 Jul 2014 12:35

Fantastic :-),
even though I might not use your script for k9, it is truly fantastic, since your amazing flow has so many examples of scripting with explanation , which I can adapt to my own flows. I learn so much about the scripting structure in AM by this flow!
:-)
Best regards,
AngelAtwOrk

ottodicatania
Posts: 7
Joined: 02 Nov 2014 20:52

Re: Automatic email classification (important/unimportant)

Post by ottodicatania » 26 Nov 2014 15:49

Hi,
Thanks for the great flow but the bayes_emailsubjects.txt is flooding by spaces. Is this a feature? I think no...
greets

angelatwork
Posts: 186
Joined: 12 Feb 2014 01:45

Re: Automatic email classification (important/unimportant)

Post by angelatwork » 15 Dec 2014 11:02

Hi, have you considered adding the choice to label the emails important by sender instead of subject or by sender and subject?

Best regards AngelAtwOrk
Best regards,
AngelAtwOrk

Post Reply