The Altair Community and the RapidMiner community is on read-only mode until further notice. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here.
Options
replace operator to replace n't by " not" (space not)
![Arupriya_Sen](https://us.v-cdn.net/6030995/uploads/defaultavatar/nCCNNSPK1YM69.jpg)
![](https://s3.amazonaws.com/rapidminer.community/vanilla-rank-images/contributor-16x16.png )
in Help
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?
0
Best Answer
-
Options
Edin_Klapic Moderator, Employee, RMResearcher, Member Posts: 299
RM Data Scientist
Hi @Arupriya_Sen ,I cannot see a problem with your approach. It works for me.Did you know you can use the Expression helper in Replace? There you can test the result of your expressionsHappy Mining,Edin5