Unverified Commit 5282b31d authored by William Falcon's avatar William Falcon Committed by GitHub
Browse files

Update run_pl_ner.py (#4118)

parent 1e616c0a
......@@ -130,8 +130,7 @@ class NERTransformer(BaseTransformer):
ret["log"] = results
return ret, preds_list, out_label_list
def validation_end(self, outputs):
# todo: update to validation_epoch_end instead of deprecated validation_end
def validation_epoch_end(self, outputs):
# when stable
ret, preds, targets = self._eval_end(outputs)
logs = ret["log"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment