shibing624 commited on
Commit
a24a2c4
1 Parent(s): e3792e1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -75,7 +75,7 @@ sentence = "王宏伟来自北京,是个警察,喜欢去王府井游玩儿
75
 
76
 
77
  def get_entity(sentence):
78
- tokens = tokenizer.tokenize(tokenizer.decode(tokenizer.encode(sentence)))
79
  inputs = tokenizer.encode(sentence, return_tensors="pt")
80
  with torch.no_grad():
81
  outputs = model(inputs).logits
 
75
 
76
 
77
  def get_entity(sentence):
78
+ tokens = tokenizer.tokenize(sentence)
79
  inputs = tokenizer.encode(sentence, return_tensors="pt")
80
  with torch.no_grad():
81
  outputs = model(inputs).logits