In my env(colab) I need the following library. Here is the list :
!pip install --quiet transformers==4.1.1
!pip install --quiet pytorch-lightning==1.1.3
#!pip install pytorch-lightning
!pip install --quiet tokenizers==0.9.4
!pip install --quiet sentencepiece==0.1.94
!pip install torchtext==0.8.0 torch==1.7.1 pytorch-lightning==1.1.3
After I am importing FARMReader and TransformersReader from haystack library. Here is the code
!pip install grpcio-tools==1.34.1
!pip install git+https://github.com/deepset-ai/haystack.git
from haystack.reader.farm import FARMReader
from haystack.reader.transformers import TransformersReader
This gives me the error:
ImportError: cannot import name 'BigBirdTokenizer' from 'transformers' (/usr/local/lib/python3.7/dist-packages/transformers/__init__.py)
I tried to reinstall transformers other version but this does not work:
!pip install --quiet transformers==4.7.0