Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
5282b31d
"...lm-evaluation-harness.git" did not exist on "b0108cf8a288ce713fb036f0f82cd176c50ad83a"
Unverified
Commit
5282b31d
authored
May 02, 2020
by
William Falcon
Committed by
GitHub
May 02, 2020
Browse files
Update run_pl_ner.py (#4118)
parent
1e616c0a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
examples/ner/run_pl_ner.py
examples/ner/run_pl_ner.py
+1
-2
No files found.
examples/ner/run_pl_ner.py
View file @
5282b31d
...
...
@@ -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"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment