Update README.md
Browse files
README.md
CHANGED
@@ -39,6 +39,8 @@ inputs = SignTaggingTokenizer.encode(sentence, return_tensors="pt")
|
|
39 |
outputs = SignTaggingModel(inputs)[0]
|
40 |
predictions = torch.argmax(outputs, dim=2)
|
41 |
|
42 |
-
print([(token, label_list[prediction]) for token, prediction in zip(tokens, predictions[0].tolist())])
|
|
|
|
|
43 |
======================================================================
|
44 |
|
|
|
39 |
outputs = SignTaggingModel(inputs)[0]
|
40 |
predictions = torch.argmax(outputs, dim=2)
|
41 |
|
42 |
+
print([(token, label_list[prediction]) for token, prediction in zip(tokens, predictions[0].tolist())])
|
43 |
+
|
44 |
+
|
45 |
======================================================================
|
46 |
|