Skip to content
New issue

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

getting 'ValueError-TextInputSequence must be str' in 'train_dataset = train_dataset.map(convert_to_features)' #7011

Closed
hemantwani opened this issue Sep 8, 2020 · 1 comment

Comments

@hemantwani
Copy link

Hello friends,
I want to fine tune longformer QnA for different data. I found this code very relevant to my requirement, so was trying to understand the same thoroughly. but getting an error.
i am trying to run the same code that Suraj has on github.

**

'ValueError-TextInputSequence must be str' in 'train_dataset = train_dataset.map(convert_to_features)'.

**

`train_dataset = nlp.load_dataset('squad', split=nlp.Split.TRAIN)
valid_dataset = nlp.load_dataset('squad', split=nlp.Split.VALIDATION)

train_dataset = train_dataset.map(convert_to_features)
valid_dataset = valid_dataset.map(convert_to_features, load_from_cache_file=False)

#patil_suraj

@hemantwani
Copy link
Author

@patil-suraj
Can you help me with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant