Traceback (most recent call last):


 "/usr/local/bin/bert-base-ner-train", line 10, in <module>

sys.exit(train_ner())


 "/usr/local/lib/python3.6/dist-packages/bert_base/runs/__init__.py", line 37, in train_ner

train(args=args)


 "/usr/local/lib/python3.6/dist-packages/bert_base/train/bert_lstm_ner.py", line 616, in train

tf.estimator.train_and_evaluate(estimator, train_spec, eval_spec)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/training.py", line 471, in train_and_evaluate

return executor.run()


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/training.py", line 610, in run

return self.run_local()


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/training.py", line 711, in run_local

saving_listeners=saving_listeners)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/estimator.py", line 354, in train

loss = self._train_model(input_fn, hooks, saving_listeners)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/estimator.py", line 1183, in _train_model

return self._train_model_default(input_fn, hooks, saving_listeners)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/estimator.py", line 1217, in _train_model_default

saving_listeners)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/estimator.py", line 1411, in _train_with_estimator_spec

_, loss = mon_sess.run([estimator_spec.train_op, estimator_spec.loss])


 "/usr/local/lib/python3.6/dist-packages/tensorflow/python/training/monitored_session.py", line 788, in __exit__

self._close_internal(exception_type)


 "/usr/local/lib/python3.6/dist-packages/tensorflow/python/training/monitored_session.py", line 821, in _close_internal

h.end(self._coordinated_creator.tf_sess)


 "/usr/local/lib/python3.6/dist-packages/tensorflow/python/training/basic_session_run_hooks.py", line 588, in end

self._save(session, last_step)


 "/usr/local/lib/python3.6/dist-packages/tensorflow/python/training/basic_session_run_hooks.py", line 607, in _save

if l.after_save(session, step):


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/training.py", line 517, in after_save

self._evaluate(global_step_value)
# updates self.eval_result


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/training.py", line 537, in _evaluate

self._evaluator.evaluate_and_export())


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/training.py", line 912, in evaluate_and_export

hooks=self._eval_spec.hooks)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/estimator.py", line 474, in evaluate

return _evaluate()


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/estimator.py", line 460, in _evaluate

self._evaluate_build_graph(input_fn, hooks, checkpoint_path))


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/estimator.py", line 1424, in _evaluate_build_graph

self._call_model_fn_eval(input_fn, self.config))


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/estimator.py", line 1460, in _call_model_fn_eval

features, labels, model_fn_lib.ModeKeys.EVAL, config)


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/estimator.py", line 1171, in _call_model_fn

model_fn_results = self._model_fn(features=features, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/bert_base/train/bert_lstm_ner.py", line 421, in model_fn

eval_metric_ops=eval_metrics


 "/usr/local/lib/python3.6/dist-packages/tensorflow_estimator/python/estimator/model_fn.py", line 194, in __new__

raise ValueError('Missing loss.')
ValueError: Missing loss.
Traceback (most recent call last):


 "/usr/local/envs/jupyterlab/lib/python3.6/tarfile.py", line 189, in nti

n = int(s.strip() or "0", 8)
ValueError: invalid literal for int() with base 8: "t'[]u'[]"
