Update README.md
Browse files
README.md
CHANGED
@@ -57,7 +57,7 @@ kao i korpus [PDRS 1.0](https://www.clarin.si/repository/xmlui/handle/11356/1752
|
|
57 |
|
58 |
```python
|
59 |
>>> from transformers import pipeline
|
60 |
-
>>> unmasker = pipeline('fill-mask', model='jerteh/jerteh-
|
61 |
>>> unmasker("Kada bi čovek znao gde će pasti on bi<mask>.")
|
62 |
>>>
|
63 |
```
|
@@ -74,8 +74,8 @@ kao i korpus [PDRS 1.0](https://www.clarin.si/repository/xmlui/handle/11356/1752
|
|
74 |
>>> from transformers import AutoTokenizer, AutoModelForMaskedLM
|
75 |
>>> from torch import LongTensor, no_grad
|
76 |
>>> from scipy import spatial
|
77 |
-
>>> tokenizer = AutoTokenizer.from_pretrained('jerteh/jerteh-
|
78 |
-
>>> model = AutoModelForMaskedLM.from_pretrained('jerteh/jerteh-
|
79 |
>>> x = " pas"
|
80 |
>>> y = " mačka"
|
81 |
>>> z = " svemir"
|
|
|
57 |
|
58 |
```python
|
59 |
>>> from transformers import pipeline
|
60 |
+
>>> unmasker = pipeline('fill-mask', model='jerteh/jerteh-355')
|
61 |
>>> unmasker("Kada bi čovek znao gde će pasti on bi<mask>.")
|
62 |
>>>
|
63 |
```
|
|
|
74 |
>>> from transformers import AutoTokenizer, AutoModelForMaskedLM
|
75 |
>>> from torch import LongTensor, no_grad
|
76 |
>>> from scipy import spatial
|
77 |
+
>>> tokenizer = AutoTokenizer.from_pretrained('jerteh/jerteh-355')
|
78 |
+
>>> model = AutoModelForMaskedLM.from_pretrained('jerteh/jerteh-355', output_hidden_states=True)
|
79 |
>>> x = " pas"
|
80 |
>>> y = " mačka"
|
81 |
>>> z = " svemir"
|