more specifically, I have strings like the following:

Category: colors

string1: yellow+brown+blue

string2: brown

string3: red+blue+black

is it possible to give an input to the system so it can automatically recognize the word 'yellow', 'brown', 'blue', 'red', or 'black' in the string and assign each one of them a number?

as alternative, how can I automatically turns different strings into numbers?

thank you very much in advance.

Giorgia

Similar questions and discussions