ValueError: Requested tokenizer basic_english, valid choices are a callable that takes a single string as input,

basic_english tokenizer error in PyTorch attention tutorial.

import torchtext
from import get_tokenizer
TEXT ="basic_english"),

google colab notebook not found

Feel free to open up an issue on (pytorch/tutorials]( Could you also post the error messages?

I raised an issue, along with error messages on github.

Can you send me the issue?

Thanks. I have pinged the maintainers for pytorch/tutorial repo. I run the script locally and it’s fine. So very likely, there is an issue with the setup.

try this:

!pip3 install torchtext==0.4.0

this works, in colab they have installed torchtext version 0.3.1