Update README.md
Browse files
README.md
CHANGED
@@ -156,8 +156,8 @@ Here is how to use this model to get the sentence embeddings of a given text in
|
|
156 |
```python
|
157 |
from transformers import BertModel, BertTokenizerFast
|
158 |
|
159 |
-
tokenizer =
|
160 |
-
model =
|
161 |
|
162 |
# pepare input
|
163 |
sentences = ["This is an example sentence", "Dies ist auch ein Beispielsatz in einer anderen Sprache."]
|
@@ -176,8 +176,8 @@ and in Tensorflow:
|
|
176 |
```python
|
177 |
from transformers import TFBertModel, BertTokenizerFast
|
178 |
|
179 |
-
tokenizer =
|
180 |
-
model =
|
181 |
|
182 |
# pepare input
|
183 |
sentences = ["This is an example sentence", "Dies ist auch ein Beispielsatz in einer anderen Sprache."]
|
|
|
156 |
```python
|
157 |
from transformers import BertModel, BertTokenizerFast
|
158 |
|
159 |
+
tokenizer = BertTokenizerFast.from_pretrained('aiana94/NaSE')
|
160 |
+
model = BertModel.from_pretrained('aiana94/NaSE')
|
161 |
|
162 |
# pepare input
|
163 |
sentences = ["This is an example sentence", "Dies ist auch ein Beispielsatz in einer anderen Sprache."]
|
|
|
176 |
```python
|
177 |
from transformers import TFBertModel, BertTokenizerFast
|
178 |
|
179 |
+
tokenizer = BertTokenizerFast.from_pretrained('aiana94/NaSE')
|
180 |
+
model = TFBertModell.from_pretrained('aiana94/NaSE')
|
181 |
|
182 |
# pepare input
|
183 |
sentences = ["This is an example sentence", "Dies ist auch ein Beispielsatz in einer anderen Sprache."]
|