Using bag of words
<p>I am looking into implementing bag of words approach when dealing with emails stored as text files. I want to use keywords that could indicate that the email needs reply, analyse the emails with binary (something like 1|0|1|0|0 etc depending if the word is used) and then obtain a feature vectors that I could use with different ML algorithms.</p>

<p>I was thinking about using PHP to obtain the feature vectors but I can't find any existing implementations. Is it even possible to do something like that in PHP?</p>
