Commit ·
3a87257
1
Parent(s): 7c65df8
Update README.md
Browse files
README.md
CHANGED
|
@@ -59,8 +59,8 @@ def cls_pooling(model_output, attention_mask):
|
|
| 59 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
| 60 |
|
| 61 |
# Load model from HuggingFace Hub
|
| 62 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
| 63 |
-
model = AutoModel.from_pretrained(
|
| 64 |
|
| 65 |
# Tokenize sentences
|
| 66 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
|
|
|
| 59 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
| 60 |
|
| 61 |
# Load model from HuggingFace Hub
|
| 62 |
+
tokenizer = AutoTokenizer.from_pretrained("timotheeplanes/anti-doping-bert-base")
|
| 63 |
+
model = AutoModel.from_pretrained("timotheeplanes/anti-doping-bert-base")
|
| 64 |
|
| 65 |
# Tokenize sentences
|
| 66 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|