Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
Extract a specific word from text
Hi, I'm having a problem that is hopefully straightforward.
One attribute in my dataset consists of product descriptions. I want to extract a specific keyword from the product descriptions and create a new attribute that contains just the keyword.
For example, lets say iSight is my keyword and the following is the description:
"New 8-megapixel iSight camera with 1.5µ pixels
Autofocus with Focus Pixels ƒ/2.2 aperture"
The new attribute would be able to find and extract "iSight":
Regards,
Steve
One attribute in my dataset consists of product descriptions. I want to extract a specific keyword from the product descriptions and create a new attribute that contains just the keyword.
For example, lets say iSight is my keyword and the following is the description:
"New 8-megapixel iSight camera with 1.5µ pixels
Autofocus with Focus Pixels ƒ/2.2 aperture"
The new attribute would be able to find and extract "iSight":
Regards,
Steve
0
Answers
The Generate Attributes operator is one possibility. Use the matches function and a suitable regular expression.
If you want the keyword itself to be the attribute value then you could use the Generate Extract function.
Here's a simple example showing both. regards
Andrew
hi
how to write expression for get the specific word list.
how to write expression in generate attribute operator for getting specific word list
Hi @rajbanokhan
I don't understand exactily what you want but :
I propose to you 2 elements of response :
1. first this process
2. this second process
fot this last process , i don't undestand why the colums where there are all the wanted words, thre are nothing displayed.
Regards;
Lionel
hi
i want to search specific word from text. for example we have a paragraph and i want to search a word from it
so i use "The Generate Attributes operator" and how i write "Use the matches function and a suitable regular expression".