shibing624
commited on
Commit
•
a24a2c4
1
Parent(s):
e3792e1
Update README.md
Browse files
README.md
CHANGED
@@ -75,7 +75,7 @@ sentence = "王宏伟来自北京,是个警察,喜欢去王府井游玩儿
|
|
75 |
|
76 |
|
77 |
def get_entity(sentence):
|
78 |
-
tokens = tokenizer.tokenize(
|
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
|