dennybritz / cnn-text-classification-tf

Convolutional Neural Network for Text Classification in Tensorflow
Apache License 2.0
5.65k stars 2.77k forks source link

AttributeError: module 'tensorflow_estimator.python.estimator.api._v1.estimator' has no attribute 'preprocessing' #193

Open xingyangfeng opened 3 years ago

xingyangfeng commented 3 years ago

max_document_length = max([len(x.split(" ")) for x in x_text]) vocab_processor = estimator.preprocessing.VocabularyProcessor(max_document_length) x = np.array(list(vocab_processor.fit_transform(x_text)))

AnuragNagare commented 1 year ago

Try upgrading your tensorflow version