[feat] Zero-shot classification#3259
[feat] Zero-shot classification#3259nguyenhoan1988 wants to merge 2 commits intohuggingface:mainfrom
Conversation
|
Hello! This is really cool, it reminds me a bit of SetFit as well. However, I'm a little bit unsure whether it fits in Sentence Transformers like this currently. Normally, we implement this kind of functionality in utility functions, e.g.: https://sbert.net/docs/package_reference/util.html#sentence_transformers.util.paraphrase_mining Or in a third party project that extends Sentence Transformers with training and inference of strong zero-shot classification models. Beyond that, although Sentence Transformer models are definitely good out of the box for zero-shot classification, they're often not trained specifically for it (especially with the In short, I'm not very sure what to do with this yet.
|
|
Hi, I have developed a private benchmark of zero-shot classification and the off-the-shelf Sentence Transformers models perform quite well. Thanks a lot for your feedback, |
Categorize text into unseen labels by leveraging pre-trained Sentence Transformers.
Input sentences and candidate labels are encoded into dense vectors, and the label with the highest cosine similarity to the sentence's embedding is predicted.