Update README.md (#3)
Browse files- Update README.md (7222b10f2c2d4d26c4b1adff75a4f6cd803101c8)
Co-authored-by: Milutin Studen <Studeni@users.noreply.huggingface.co>
README.md
CHANGED
@@ -65,7 +65,7 @@ encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tenso
|
|
65 |
with torch.no_grad():
|
66 |
model_output = model(**encoded_input)
|
67 |
|
68 |
-
# Perform pooling. In this case,
|
69 |
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
|
70 |
|
71 |
print("Sentence embeddings:")
|
|
|
65 |
with torch.no_grad():
|
66 |
model_output = model(**encoded_input)
|
67 |
|
68 |
+
# Perform pooling. In this case, mean pooling.
|
69 |
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
|
70 |
|
71 |
print("Sentence embeddings:")
|