The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
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.