guillaumegenthial / tf_ner

Simple and Efficient Tensorflow implementations of NER models with tf.estimator and tf.data
Apache License 2.0
923 stars 275 forks source link

main.py : TypeError:__init__() got an unexpected keyword argument 'save_checkpoints_secs' #41

Open Nicozwy opened 5 years ago

Nicozwy commented 5 years ago

I got this error caused by the argument in the 'RunConfig' function when I run the 'python main.py' command. However, it still showed that 'Estimator' object has no attribute 'eval_dir'. what should I do next? Thank you in advance.

Nicozwy commented 5 years ago

1 handling the first bug by adding .replace() to the RunConfig function 2 should I upgrade the tf in order to support the eval_dir?

guillaumegenthial commented 5 years ago

Hi @393301836 , it's probably a tf version error, if you check on the tensorflow documentation, these arguments / methods should be defined. You can either modify the code to accomodate those problems to your tf version or upgrade to 1.x