Transformers
PyTorch
code
custom_code
Inference Endpoints

Update code snippet to use sentence-level embeddings

#2
by tomaarsen HF staff - opened

Hello!

Pull Request overview

  • Use sentence level embeddings (pooler output) in code snippet

Details

Before, the snippet gave only token-level embeddings, which are not very useful in practice generally. I think the pooler output will be more useful.

  • Tom Aarsen
Cannot merge
This branch has merge conflicts in the following files:
  • README.md

Sign up or log in to comment