Hello. I want to encode spanish sentences. Is it suitable to do it with bertin? How do I do so?
I tried with model.encode, but did not work.
That said, it seems you might be able to use the last token's embedding as a sort of sentence embedding: https://github.com/huggingface/transformers/issues/3168. Still, a RoBERTa/BERT embedding might work better.