Update README.md
Browse files
README.md
CHANGED
@@ -38,7 +38,7 @@ batch = tokenizer.batch_encode_plus(
|
|
38 |
truncation=True
|
39 |
)
|
40 |
|
41 |
-
# Compute the embeddings
|
42 |
|
43 |
outputs = model(**batch, output_hidden_states=True, return_dict=True)
|
44 |
|
|
|
38 |
truncation=True
|
39 |
)
|
40 |
|
41 |
+
# Compute the embeddings and keep only the _**[CLS]**_ embedding (the first token)
|
42 |
|
43 |
outputs = model(**batch, output_hidden_states=True, return_dict=True)
|
44 |
|