Update README.md
#3
by
luojiluoji
- opened
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 polling.
|
69 |
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
|
70 |
|
71 |
print("Sentence embeddings:")
|