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
And I was able to train and serialize a model for the IMDB Dataset.
Currently, I want to test the model with new validation phrases. Nevertheless, I cannot find a way to tokenize the phrase into the required data shape, as in the provided sample:
Hi everyone! Thanks a lot for this nice tutorial and code to learning transformers!.
I am trying to recreate the sample of the tutorial:
https://peterbloem.nl/blog/transformers
And I was able to train and serialize a model for the IMDB Dataset.
Currently, I want to test the model with new validation phrases. Nevertheless, I cannot find a way to tokenize the phrase into the required data shape, as in the provided sample:
I see that the tokens are generated in some part of the BucketIterator (or the dataset itself):
As in the dataset , I can see the phrases separated into words:
generates:
So, if I want to test a pharse in the model. Like:
How can I tokenize the word in a correct way to feed it into the model?.
Thanks in advance for your response.
Greetings!
The text was updated successfully, but these errors were encountered: