Sentence-transformers: Batch embedding

Created on 25 Apr 2020  路  3Comments  路  Source: UKPLab/sentence-transformers

Dear all,

first of all, thank you for the amazing library! Is there a way to call .encode with a batch of sentences?

Best Regards,

Francesco Saverio Zuppichini

Most helpful comment

Excited to be using your guys' library. Please close issues that you successfuly resolve :)

All 3 comments

Hi,
You can pass a list of sentences to encode. The function then performs batching. The size of the batch can be controlled via the parameter passed to that method.

Thank you. I feel so stupid :)

Excited to be using your guys' library. Please close issues that you successfuly resolve :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PhilipMay picture PhilipMay  路  3Comments

zishanmuzeeb picture zishanmuzeeb  路  4Comments

serge-sotnyk picture serge-sotnyk  路  3Comments

aclifton314 picture aclifton314  路  3Comments

lagatorc picture lagatorc  路  4Comments