Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get sentence embedding from DeBERTa for SNLI Dataset? #60

Closed
akshat-suwalka opened this issue Jul 12, 2021 · 1 comment
Closed

Comments

@akshat-suwalka
Copy link

Hi,
I want a single vector from hugging face DeBERTA-base model for doing semantic similarity....
Can i use the first vector of DeBERTa to represent the whole sentence OR Can i use the sum of first and last vector to represent sentence embedding???
Can anybody guide me how to use deberta to get the accuracy on snli dataset??

Thanks

@BigBird01
Copy link
Contributor

You can use either of them based on our evaluation results. Generally, we use the first token, i.e. [CLS].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants