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
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".