Options

\n command doesn't work in Replace Token Operator

tobowtobow Member Posts: 5 Newbie
Hi,

I'm trying to read pdf-files in RapidMiner through the "Read Document" operator and then use the "Replace Token Operator" to delete all line-breaks. I replace "\n" with " ", but when I then copy the text, all line breaks are still in place. Weirdly, when I use the "Create Document" operator and manually copy the text into the operator, everything seems to work fine... Does anyone in the community know why this could be or if there is a way to automatically read the pdf-files and copy the text into a "Create Document" operator? Thanks alot in advance :smile:

Best Answer

  • Options
    jwpfaujwpfau Employee, Member Posts: 285 RM Engineering
    Solution Accepted
    Hi tobow,

    You could do this with Documents to Data β†’ Replace \R β†’ Extract Document.

    The Replace Token operator can sadly only replace inside the individual tokens as far as i know.

    Greetings,
    Jonas
Sign In or Register to comment.