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
map
I'm trying to run a basic example (mapping function to add a prefix). Here is the colab notebook I'm using.
import nlp dataset = nlp.load_dataset('squad', split='validation[:10%]') def test(sample): sample['title'] = "test prefix @@@ " + sample["title"] return sample print(dataset[0]['title']) dataset.map(test) print(dataset[0]['title'])
Output :
Super_Bowl_50 Super_Bowl_50
Expected output :
Super_Bowl_50 test prefix @@@ Super_Bowl_50
The text was updated successfully, but these errors were encountered:
I didn't assign the output 🤦♂️
dataset.map(test)
should be :
dataset = dataset.map(test)
Sorry, something went wrong.
No branches or pull requests
I'm trying to run a basic example (mapping function to add a prefix).
Here is the colab notebook I'm using.
Output :
Expected output :
The text was updated successfully, but these errors were encountered: