# Unable to Import TFBertTokenizer

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-import-tfberttokenizer%2F24915%3E%5C
**Category:** 🤗Transformers\
**Created:** [October 25, 2022, 4:41am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-import-tfberttokenizer%2F24915 "2022-10-25T04:41:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shabha7092](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@shabha7092](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fshabha7092)%5C
**Post date:** [October 25, 2022, 4:41am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-import-tfberttokenizer%2F24915%2F1 "2022-10-25T04:41:05Z")

</div>

when i try to import TFBertTokenizer using the statement “from transformers import TFBertTokenizer” i come across the below error.

ImportError: cannot import name ‘TFBertTokenizer’ from ‘transformers’

Tensorflow version - 2.10.0  
Transformers version - 4.23.1 (Tried different version)

I am able to import BertTokenizer though. Did something change ? If i recollect i was able to import TFBertTokenizer too in the past. i also happen to check the code base and the class TFBertTokenizer still exists as part of the transformer package
