Is “TokenType” at allennlp.data.token_indexers.token_indexer” deleted, or its location changed?
I’m working on a old vlp model (year:2019, VisualBERT), but i want to use as much as possible newest versions of all requirements. When i was running the model i met with this error:
” from allennlp.data.token_indexers.token_indexer import TokenIndexer, TokenType
ImportError: cannot import name ‘TokenType’ from ‘allennlp.data.token_indexers.token_indexer’
“.
There was some errors like that and i fixed it with “https://docs.allennlp.org/main/” this page. But i couldn’t find any information about “TokenType”.