The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
RegEx for Names, Numbers and Email ids
7amritaarora7
Member Posts: 25 Contributor II
Hi all
I want to extract names, numbers and emails from text. I thought of doing so using RegEx. So, can someone please help with suggesting a regex that works well in RapidMiner?
Or is there any other process to do so?
Thanks in advance
Amrita
Tagged:
0
Answers
Hi Amrita,
i think it's very hard to design such a general regex. Email addresses are kind of easy with (.+)@(.+)\.(.+) but for names?
Have you tried the aylien Extract Entities operator?
~martin
Dortmund, Germany
Hi @mschmitz
Thanks for the suggestion about Extract Entitites. I tried that, it's working,but the accuracy is not good.
for eg- In the database text, there is "Mr Narender Choudhary", it's a name, but, while extracting names, it extracts only Chaoudhary, not the entire name.
Is there any other solution for extracting names or improving this operator?
Oh I have this issue all the time. I use the Generate Attributes operator and lots of text parsing. Here's an example of a "building block" I use to take a person's name in the form of "LastName, FirstName MiddleInitial" and creates three new attributes for Last, First and MI.
Scott
Hi @sgenzer
I tried your solution with my database, but it didn't work.
Any other way out?
Regards
Amrita
hmm can you post your process and a few rows of your data so I can take a look at it?
Hi @sgenzer @mschmitz
Thanks for the help. I worked on it again and the issue is now solved using Extract Entities operator. But, while using this operator - this is what that needs to be kept in mind- the data being analyzed should meaningful (no unnecessary special characters and line breaks), if it's not, it does not give accurate results.
Thanks again!
Regards
Amrita
@mschmitz @sgenzer
Hi
Now, that I have a process running perfectly using Extract Entities operator by Aylien. My next step us to create a process on my own, that works at the least, exactly like Aylien, but also, few improvements as an add on. So, will I need to train and test each category within Extract entities or is there any other solution to this?
Need some guidance as to how to proceed for creating something similar to Extract Entities.
Thanks in advance
Regards
Amrita