Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.

\n command doesn't work in Replace Token Operator

tobowtobow Member Posts: 5 Learner I
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

  • jwpfaujwpfau Employee, Member Posts: 303 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.