Convert nl string to vector or some numeric equivalent
问题 I'm trying to convert a string to a numeric equivalent so I can train a neural-network to classify the strings. I tried the sum of the ascii values, but that just results in larger numbers vs smaller numbers. For example, I could have a short string in german and it puts it into the english class because the english words that it has been trained with are short and numerically small. I was looking into Google's word2vec, which seems like it should work. But I want to do this on the client