I need to create sentence embeddings. I have 100mio sentences, and I want to do…
- User
I need to create sentence embeddings. I have 100mio sentences, and I want to do classification. please answer short
Assistant
A large-scale NLP task!
For sentence embeddings, I recommend:
- Use a pre-trained language model like BERT, RoBERTa, or DistilBERT. They provide excellent sentence embeddings out-of-the-box.
- ** Fine-tune the model** on your specific classification task. This will adapt the model to your dataset and improve performance.
If you want to train a model from scratch, consider:
- Sentence Transformers like InferSent, SiaNet, or QuickThought. They're designed for sentence embeddings and can be trained on your dataset.
- Use a GPU or a distributed computing framework like Dask or Hugging Face's Transformers to speed up the process.
Good luck with your project!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.