0
$\begingroup$

I am new to machine learning. I have a project in which i need to extract some data from email by parsing email using machine learning and would really appreciate if you could guide me with that. I am a bit confused where to start and how to start, kindly help.

Thanks.

$\endgroup$
3
  • 1
    $\begingroup$ Hi @Cupcake, welcome to the site. The approach to parsing the emails would be completely different depending on the format of the email and the type information to extract. A general solution would be to use a large language model (LLM), but simpler solutions (e.g. a regular expression) may be enough for emails with a very regular formatting. $\endgroup$
    – noe
    Commented Dec 26, 2023 at 8:14
  • $\begingroup$ Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. $\endgroup$
    – Community Bot
    Commented Dec 26, 2023 at 9:54
  • $\begingroup$ Thank you Noe for your answer... I have a project with the help of which we are trying to extract information like origin, destination, weight details of the cargo. Right now, i am learning basics of NLP and would be really grateful if you could guide me with what i should start after NLP $\endgroup$
    – Cupcake
    Commented Dec 27, 2023 at 10:01

2 Answers 2

1
$\begingroup$

I recommend taking a look at this blog post –while their dataset is probably different from yours, their task seems the same: Named Entity Recognition using the Enron Email Dataset in Python: Part 2.

For a general (but comprehensive) introduction to entity extraction in Python, you may also want to take a look at this Kaggle tutorial.

Hope this helps, best of luck with the project!

$\endgroup$
1
  • $\begingroup$ Thanks JordiCarrera for the reply.. I will definitely look into this. $\endgroup$
    – Cupcake
    Commented Dec 29, 2023 at 9:54
0
$\begingroup$

Presuming you needing to extract data-elements from the emails, which are usually noun-phrases. In that case, you may use any available NP chunkers from spacy, nltk, stanford-nlp or the likes to extract noun phrases from the email. If you are looking to extract email ids and names, you may use NER (named-entity-recognizers) available in the open source world.

$\endgroup$
1
  • $\begingroup$ Thanks Sudar for the reply.. I will definitely look into these libraries. $\endgroup$
    – Cupcake
    Commented Dec 27, 2023 at 10:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.