Muennighoff / sgpt

SGPT: GPT Sentence Embeddings for Semantic Search
https://arxiv.org/abs/2202.08904
MIT License
841 stars 51 forks source link

generating similar sentences #4

Open nikky4D opened 2 years ago

nikky4D commented 2 years ago

Is it possible to use this library for generating similar sentences to an input sentence?

Muennighoff commented 2 years ago

Hmm, you could generate a lot of sentences with a GPT model using e.g. the huggingface/transformers library & then use models from this library to score their similarity & keep the most similar ones