Can't import bert.tokenization Can't import bert.tokenization python-3.x python-3.x

Can't import bert.tokenization


I found it:

!pip install bert-tensorflow


install :pip install bert-for-tf2

then import,

from bert import bert_tokenization BertTokenizer = bert_tokenization.FullTokenizer


For anyone experiencing this problem with TensorFlow 2.0 and the bert-for-tf2 library, I found out that I was missing some files after using pip3 install. I've posted my solution here:

https://github.com/google-research/bert/issues/638#issuecomment-592488730