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
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment