I want to encode a categorical variable named machine code to a numerical value. Machine code has more than 100 different names. what is the best way?