bert-toolkit

AttributeError: module 'tensorflow_core._api.v2.train' has no attribute 'Optimizer' when importing BERT

限于喜欢 提交于 2021-02-11 14:44:14
问题 I'm am getting this error just in the being of importing my packages. I haven't been able to find the correct remedy to fix the issue. Any help is greatly appreciated. From what I can tell it looks to maybe be a Tensorflow issue? from sklearn.model_selection import train_test_split import pandas as pd import tensorflow as tf import tensorflow_hub as hub from datetime import datetime import bert from bert import run_classifier from bert import optimization from bert import tokenization 回答1: