Let's say I have a string America and I want to convert it into a number to feed into a machine learning algorithm. If I use two digits for each letter, e.g. A = 01, B = 02 and so on, then the word America will be converted to 01XXXXXXXXXX01 (1011). This is a very high number for a long int, and many words longer than America are expected. How can I deal with this problem?Suggest an algorithm for efficient and meaningful conversions.
How to convert string to number and number to string efficiently?
machine learning