Hi!
I got some descriptions today that I need to find a way to classify them.
For example:
Every time that it reads “cracker” or “agua e sal” etc… it already classifies as “AGUA E SAL/CREAM CRACKER”.
Is this easir to do that I think? I thought of using regex somehow, but didnt figure it out.
Thanks in advance!
![image](https://forum-cdn.knime.com/uploads/default/original/3X/e/d/edc3c76ad61a36a67accf031daaa56fae83efbb6.png)
Hi @lawrencetu
It looks like this could be solved using the -Rule Engine- node
![image](https://forum-cdn.knime.com/uploads/default/original/3X/a/6/a625c92188b2f6643336e3d20870606a8ed994ec.png)
Something along the lines of:
Hope that helps:)
Heather
2 Likes
Hi @HeatherPikairos , thank you for your reply!
For some reason, there are cases that it doesnt work. Do u have any suggestion?
Thanks!
Hi @lawrencetu
In the RegEx, “.*” must be used before and after the text.
“.*CRACKER.*” rather than “.*CRACKER*.” as written in your screenshot
I hope that solves it ![:slight_smile: :slight_smile:](https://forum-cdn.knime.com/images/emoji/twitter/slight_smile.png?v=12)
Best
Heather
4 Likes
system
Closed
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.