Closed Fethbita closed 6 years ago
This PR changes the embed_sentence that was "kind-of deprecated and very inefficient" and now it calls the embed_sentences with the sentence as single element list.
embed_sentence
embed_sentences
sentence
def embed_sentence(self, sentence, num_threads=1): return self.embed_sentences([sentence], num_threads)
numpy.squeeze can also be added to ensure compatibility with the old version.
Looks good to me
This PR changes the
embed_sentence
that was "kind-of deprecated and very inefficient" and now it calls theembed_sentences
with thesentence
as single element list.