Hash for tokenizer