This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Run checklist suites in AllenNLP #5065
Run checklist suites in AllenNLP #5065
Changes from 30 commits
03ed962
9298344
4de66d9
b297a5e
e7c28ec
834da9f
7ec15df
4a72ee4
e081d86
6d0a848
a539927
793e1d4
1f30e0b
b3e39af
a7ee03a
6ca2366
c7ba6a9
9ce113e
72d2058
309e8f6
8cdfd9b
74088b5
aae66fe
867ed01
040ef6c
24aed60
c75c589
b639f70
27d6dc9
cad47a9
7fa016f
8313e44
3d75393
dff7df6
99f6ab7
567d797
a084d70
ab251a0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want this to print when
capabilities == []
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_print_summary_args
are just passed to the summary function. Whencapabilities == []
, the summary for tests of all capabilities are printed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's weird that
self._output_file
is not wrapped in awith
block. Can that be done?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I modeled the
checklist
command on thepredict
command code, which did something similar (I suppose that can be updated too). In any case, thesummary
function wraps aroundchecklist
's summary function, which only prints to stdout. We essentially jump through some hoops to trick it to print to a file instead by temporarily modifying the stdout. There may be a better way to write this, of course.