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
How can I use the tokenizers on a batch of strings? if I have x = [["Hello"], ["World"]] and I tokenize it with the bert tokenizer, for some reason it flattens the inputs ids so i get all batches merged into 1 tensor but I want the token ids not to be flattened
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How can I use the tokenizers on a batch of strings? if I have x = [["Hello"], ["World"]] and I tokenize it with the bert tokenizer, for some reason it flattens the inputs ids so i get all batches merged into 1 tensor but I want the token ids not to be flattened
Beta Was this translation helpful? Give feedback.
All reactions