Jump to content

Extract feature from EMail body


tanveer

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/238122-extract-feature-from-email-body/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.