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.

replace operator to replace n't by " not" (space not)

Arupriya_SenArupriya_Sen Member Posts: 21 Contributor II
I am doing Sentiment Analysis of twitter data. now in the data processing part I wanted to remove the negation words like couldn't, wouldn't, aren't, etc. except the word won't. So I thought of using the replace operator to replace n't by  " not" (space not). This should find n't in words like couldn't and as soon as it finds it, it replaces by space not making couldn't look like could not. But I'm not yielding the desired results. Can you help me with this, as to what will be the correct regular expression for replacing n't with space not? 

Best Answer

Sign In or Register to comment.