Text Mining Extracting Data from text

Raphael2304
Raphael2304 New Altair Community Member
edited November 5 in Community Q&A
Dear all,
I have a small problem concerning Text Mining with rapidminer. I have a bunch of press releases, all structured the same way. Now I want to extract the headline of the press releases (1st line), the date it was published (2nd line) and the coloured parts of the releases same as the whole paragraph where the coloured parts were found. All releases are within one .rtf file and are separated with section breaks. Any idea how to do it the fastest way possible?

Thanks a lot in advance!

Best
Raphael

Best Answer

  • kayman
    kayman New Altair Community Member
    Answer ✓
    using a combination of split and some regex looking at newlines should do the trick.

    Attached a very rough example that can get you started.

Answers

  • kayman
    kayman New Altair Community Member
    Answer ✓
    using a combination of split and some regex looking at newlines should do the trick.

    Attached a very rough example that can get you started.

  • Raphael2304
    Raphael2304 New Altair Community Member
    Hey @kayman,
    thanks a lot for your answer. Will try your solution right now, thanks a lot!