Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
4002f95e
Commit
4002f95e
authored
Mar 29, 2021
by
Sylvain Gugger
Browse files
Remove duplicate code
parent
d7b50ce4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
examples/token-classification/run_ner_no_trainer.py
examples/token-classification/run_ner_no_trainer.py
+0
-5
No files found.
examples/token-classification/run_ner_no_trainer.py
View file @
4002f95e
...
@@ -515,11 +515,6 @@ def main():
...
@@ -515,11 +515,6 @@ def main():
predictions
=
preds
,
predictions
=
preds
,
references
=
refs
,
references
=
refs
,
)
# predictions and preferences are expected to be a nested list of labels, not label_ids
)
# predictions and preferences are expected to be a nested list of labels, not label_ids
preds
,
refs
=
get_labels
(
predictions_gathered
,
labels_gathered
)
metric
.
add_batch
(
predictions
=
preds
,
references
=
refs
,
)
# predictions and preferences are expected to be a nested list
# eval_metric = metric.compute()
# eval_metric = metric.compute()
eval_metric
=
compute_metrics
()
eval_metric
=
compute_metrics
()
...
...
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