Remark: Make sure to download the Text Processing Extension from the Marketplace in order for this solution to work.
Key element:
To extract a tokens substring, that matches a certain criteria, use the group feature of regular expressions. Here we identify token ending with 's' by using the expression ([a-zA-Z]+)s and refering to the targeted substring by the group identifier $1.
Answers
I tried token replace and it does the replace but do not remove the original word
for example
if dancing to be replaced by danc
the output will have dancing and danc
Thank you
did you use the operator TokenReplace before a tokenizer?
Here is an example of the operator added to one of the example processes delivered with the Text plugin: Cheers,
Ingo
this does not seem to work
Here is an up-to-date version:
Remark: Make sure to download the Text Processing Extension from the Marketplace in order for this solution to work.
Key element:
To extract a tokens substring, that matches a certain criteria, use the group feature of regular expressions. Here we identify token ending with 's' by using the expression ([a-zA-Z]+)s and refering to the targeted substring by the group identifier $1.
Hope it helps.