I’m trying to get AlephBERT encoding for sentence pairs.
I manage to get the tokens for the batch of sentences. But when I feed it to AlephBERT I get :
IndexError: index out of range in self
For a single pair of sentences, the AlephBERT model does accept the tokens. But for lists of sentences pairs, I get this error. I don’t understand where is the problem. :-(
Here is my code:
I’m trying to get AlephBERT encoding for sentence pairs. I manage to get the tokens for the batch of sentences. But when I feed it to AlephBERT I get : IndexError: index out of range in self
For a single pair of sentences, the AlephBERT model does accept the tokens. But for lists of sentences pairs, I get this error. I don’t understand where is the problem. :-( Here is my code:
Here is the Trackback:
I also paste here the working example for one pair for reference:
I am stuck on this for some time now :-( , any help is very much appreciated.