Traceback (most recent call last):


 "translate.py", line 29, in <module>

main(opt)


 "translate.py", line 18, in main

opt.batch_size, opt.attn_debug)


 "/kore-ns-groups/dh/aprosio/simp/OpenNMT-py-master/onmt/translate/Translator.py", line 210, in translate

json.dump(self.translator.beam_accum,
AttributeError: 'Translator' object has no attribute 'translator'

Traceback (most recent call last):


 "run_classifier.py", line 327, in <module>

main(args)


 "run_classifier.py", line 157, in main

shuffle=True)


 "/home/aistudio/work/models-develop/PaddleNLP/sentiment_classification/reader.py", line 75, in data_generator

return fluid.io.batch(self.get_train_examples(self.data_dir, epoch, self.max_seq_len), batch_size)
AttributeError: module 'paddle.fluid.io' has no attribute 'batch'
