Open issafuad opened 3 years ago
Thanks for reporting.
Try to update to verion 0.4.1.2 by running:
pip install -U sentence-transformers
Otherwise you can also use:
sentence_embeddings = model.encode(sentences, show_progress_bar=False)
This is a great framework. Thank you for creating it! 🙏 ❤️
On Windows 10, I am still running into the issue mentioned above using version 2.0.0 of sentence-transformers. The workaround with the extra parameters removes the error as expected. Under Unix everything was working smoothly. I am happy to help investigating this further if you can point me into a direction.
I am trying to follow the instructions on the readme
from sentence_transformers import SentenceTransformer model = SentenceTransformer('paraphrase-distilroberta-base-v1')
sentences = ['This framework generates embeddings for each input sentence', 'Sentences are passed as a list of string.', 'The quick brown fox jumps over the lazy dog.'] sentence_embeddings = model.encode(sentences)
but then it throws an error