Update README.md
Browse files
README.md
CHANGED
@@ -7,6 +7,7 @@ To use this model, the following code snippet may help:
|
|
7 |
|
8 |
======================================================================
|
9 |
|
|
|
10 |
import torch
|
11 |
from transformers import AutoModelForTokenClassification, AutoTokenizer
|
12 |
|
@@ -40,7 +41,7 @@ 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 |
|
|
|
7 |
|
8 |
======================================================================
|
9 |
|
10 |
+
~~~
|
11 |
import torch
|
12 |
from transformers import AutoModelForTokenClassification, AutoTokenizer
|
13 |
|
|
|
41 |
predictions = torch.argmax(outputs, dim=2)
|
42 |
|
43 |
print([(token, label_list[prediction]) for token, prediction in zip(tokens, predictions[0].tolist())])
|
44 |
+
~~~
|
45 |
|
46 |
======================================================================
|
47 |
|