valgardg
commited on
Commit
·
a2ca4f7
1
Parent(s):
261524f
updated formatting
Browse files
README.md
CHANGED
@@ -77,7 +77,7 @@ https://github.com/valgardg/learnice
|
|
77 |
## Usage
|
78 |
## Pos Tagging an Icelandic Sentence
|
79 |
Here is an example of how to use the model to tag Icelandic sentences:
|
80 |
-
|
81 |
# Load the fine-tuned model
|
82 |
from transformers import BertTokenizerFast, BertForTokenClassification
|
83 |
import torch # type: ignore
|
@@ -138,7 +138,7 @@ Here is an example of how to use the model to tag Icelandic sentences:
|
|
138 |
predicted_tags = predict_tags(sentence, tokenizer, model, id2tag)
|
139 |
|
140 |
print("Predicted Tags:", predicted_tags)
|
141 |
-
|
142 |
|
143 |
## License
|
144 |
MIT License
|
|
|
77 |
## Usage
|
78 |
## Pos Tagging an Icelandic Sentence
|
79 |
Here is an example of how to use the model to tag Icelandic sentences:
|
80 |
+
|
81 |
# Load the fine-tuned model
|
82 |
from transformers import BertTokenizerFast, BertForTokenClassification
|
83 |
import torch # type: ignore
|
|
|
138 |
predicted_tags = predict_tags(sentence, tokenizer, model, id2tag)
|
139 |
|
140 |
print("Predicted Tags:", predicted_tags)
|
141 |
+
|
142 |
|
143 |
## License
|
144 |
MIT License
|