tanveer Posted June 1, 2011 Share Posted June 1, 2011 Hi, I wanted to know is there any class or functions which will parse the mail body and find all the features like how many sentences, how many stop words, how many paragraphs, how many punctuation chars, etc. I haven't find anything good in my searching so far. I have parsed the whole body of email and separated the headers and body in variables. Now I want to perform these operations in only in the body. Thank you in advance. Quote Link to comment https://forums.phpfreaks.com/topic/238122-extract-feature-from-email-body/ Share on other sites More sharing options...
Ollifi Posted June 1, 2011 Share Posted June 1, 2011 I´m not sure if there is a ready-to-use function/class but here is some scripts http://www.php-questions.com/phpfaq/answer142 - count line change / paragraphs http://armandbrahaj.blog.al/2009/04/14/list-of-english-stop-words/ - here you found ready-to-use array of stopwords http://snipplr.com/view/6910/count-sentences-in-a-string/ - sentences Quote Link to comment https://forums.phpfreaks.com/topic/238122-extract-feature-from-email-body/#findComment-1223599 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.