You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered: