xu-song's picture
update
751936e
raw
history blame
183 Bytes
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("bert-base-chinese")
tokens = tokenizer.tokenize("明天搜索")
print(tokens)