update tokenizer with dict