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
"text filter"
could somebody give me a help regarding text filter. Here is my data loaded in RapidMiner.
key description
1 loan to help me to start up a new company
2 loan to help to make a new hous
3 loan to help me to pay down credit card debt
4 loan to help me to pay down credit card debt
. .................
. ................
25 loan to help me to pay down credit card debt
. ...................
n ..................
I'd like to use attibute filter to get the data which match in the description "credit card". As result sould show me like below:
key description
3 loan to help me to pay down credit card debt
4 loan to help me to pay down credit card debt
25 loan to help me to pay down credit card debt
should I uese the attribute filter in the preprocessing operater on Root Process? and which category should I chose in the condition_class? should I type "credit card" in the fild of parameter_sting?
many thinks in advance.
key description
1 loan to help me to start up a new company
2 loan to help to make a new hous
3 loan to help me to pay down credit card debt
4 loan to help me to pay down credit card debt
. .................
. ................
25 loan to help me to pay down credit card debt
. ...................
n ..................
I'd like to use attibute filter to get the data which match in the description "credit card". As result sould show me like below:
key description
3 loan to help me to pay down credit card debt
4 loan to help me to pay down credit card debt
25 loan to help me to pay down credit card debt
should I uese the attribute filter in the preprocessing operater on Root Process? and which category should I chose in the condition_class? should I type "credit card" in the fild of parameter_sting?
many thinks in advance.
Tagged:
0
Answers
if I understood you correctly, then you want to filter your examples (=rows) and not the attributes (=columns). Hence you would need the example filter.
Here's an example: If you need help on regular expressions, you could take a look in the tutorial or just use google.
Greetings,
Sebastian
key description
3 loan to help me to pay down credit card debt
4 loan to help me to pay down credit card debt
25 loan to help me to pay down credit card debt
What should I type on the code? value = “description=.*pay. debt* ???
Thanks a lot in advance
That sounds like you need some more... regular expressions! I learned most of it here: http://www.regular-expressions.info/
For your particular example, I'd use this: - R
I don't know if the mentioned above website contains something equal, but I always found this website helpful: It provides the possibility to test regular expressions on arbitrary text.
By the way: The new RapidMiner 5 contains a builder for regular expressions. For all of us, always forgetting those damned group names...
Greetings,
Sebastian