Example #1
0
 private static int GetHash(ReadOnlySpan <char> lowerCaseFeaturesWithoutSpaces)
 {
     return(Hashes.CaseSensitiveHash32(lowerCaseFeaturesWithoutSpaces));
 }
Example #2
0
 public static int GetHash(string feature)
 {
     return(Hashes.CaseSensitiveHash32(feature.Trim().ToLowerInvariant())); //TODO: Use hash from fastText
 }