Hi all! How can I replace words?

GeorgeOik1999
GeorgeOik1999 New Altair Community Member
edited November 5 in Altair RapidMiner
 It is not practical to Map one by one all the values , so I want to replace the words with numbers. When I see TV Horror I want to be 15 all the example and TV Dramas=4. Is there any faster way ( some regular expresion ) that will replace the whole example? 
Tagged:

Comments

  • Caperez
    Caperez Altair Community Member
    Hi @GeorgeOik1999

    have you try with the replace function of Generate Attribute?, something like this  may be useful

    replace(text, "TV Horror", "15")

    Best, 

    Cesar