We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, Following the demo at https://github.com/ohmeow/blurr/blob/master/nbs/02e_modeling-summarization.ipynb, I get the following error at dls = dblock.dataloaders(cnndm_df, bs=2) :
TypeError Traceback (most recent call last) in () ----> 1 dls = dblock.dataloaders(cnndm_df, bs=2)
18 frames /usr/local/lib/python3.6/dist-packages/blurr/data/core.py in encodes(self, inp) 30 inps = [inp, None] if (isinstance(inp, str) or self.is_pretokenized) else inp 31 ---> 32 res = self.hf_tokenizer(inps[0], inps[1], 33 max_length=self.max_length, 34 padding=self.padding,
TypeError: 'float' object is not subscriptable
The text was updated successfully, but these errors were encountered:
What version of pytorch and fastai are you using?
Sorry, something went wrong.
Coercing dataframe values to string (str(...)) solved for me.
ohmeow
No branches or pull requests
Hello,
Following the demo at https://github.com/ohmeow/blurr/blob/master/nbs/02e_modeling-summarization.ipynb, I get the following error at dls = dblock.dataloaders(cnndm_df, bs=2) :
TypeError Traceback (most recent call last)
in ()
----> 1 dls = dblock.dataloaders(cnndm_df, bs=2)
18 frames
/usr/local/lib/python3.6/dist-packages/blurr/data/core.py in encodes(self, inp)
30 inps = [inp, None] if (isinstance(inp, str) or self.is_pretokenized) else inp
31
---> 32 res = self.hf_tokenizer(inps[0], inps[1],
33 max_length=self.max_length,
34 padding=self.padding,
TypeError: 'float' object is not subscriptable
The text was updated successfully, but these errors were encountered: