This repository was archived by the owner on Dec 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Making checklist optional #5507
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
023fa2d
requirements and setup
AkshitaB 2cb53e7
Merge branch 'main' into optional-dep
AkshitaB dbbd290
allow for optional dependencies
AkshitaB 7282919
fix script
AkshitaB 8179aa0
update changelog
AkshitaB e20628c
fix
AkshitaB aab4bd0
fix format
AkshitaB 9a1092e
fix
AkshitaB c4e372f
update ci
AkshitaB 3c5b9dd
fix makefile
AkshitaB 4fab4d5
fix makefile
AkshitaB aceb9c4
catch import errors
AkshitaB 5b7b23d
Merge branch 'main' into optional-dep
AkshitaB 8739140
install everything
AkshitaB 3af501e
Merge branch 'optional-dep' of https://github.com/allenai/allennlp in…
AkshitaB 1628f3c
install all dependencies
AkshitaB 207a2fd
Merge branch 'main' into optional-dep
AkshitaB e528834
update
AkshitaB eec8f03
Merge branch 'optional-dep' of https://github.com/allenai/allennlp in…
AkshitaB 4221c09
add missing requirements file
AkshitaB 1c817b5
oops, missing changes
AkshitaB 7b098aa
fix ci, import warning
AkshitaB 1ef783d
update key
AkshitaB 19e56ee
fix
AkshitaB 49a1aa1
remove quotation marks
AkshitaB 8a5e23f
fix again
AkshitaB 445134b
update cache prefix
AkshitaB c2ed4e9
update Makefile too
AkshitaB cd0fc26
and docs too?
AkshitaB 77a4089
remove extra warnings
AkshitaB 87fdd60
update dockerfile
AkshitaB f6e3ba9
suppress warning, mention in docs
AkshitaB 4c0df3d
one more fix to Dockerfile
AkshitaB d6afa7a
fix test package
AkshitaB 562a57a
fix
AkshitaB 85230bb
Update README.md
AkshitaB c33d7f8
Update README.md
AkshitaB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 19 additions & 10 del
3623
etions
29
allennlp/confidence_checks/task_checklists/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
from allennlp.confidence_checks.task_checklists.task_suite import TaskSuite | ||
from allennlp.confidence_checks.task_checklists.sentiment_analysis_suite import ( | ||
SentimentAnalysisSuite, | ||
) | ||
from allennlp.confidence_checks.task_checklists.question_answering_suite import ( | ||
QuestionAnsweringSuite, | ||
) | ||
from allennlp.confidence_checks.task_checklists.textual_entailment_suite import ( | ||
F438 | TextualEntailmentSuite, | |
) | ||
import warnings | ||
|
||
try: | ||
from allennlp.confidence_checks.task_checklists.task_suite import TaskSuite | ||
from allennlp.confidence_checks.task_checklists.sentiment_analysis_suite import ( | ||
SentimentAnalysisSuite, | ||
) | ||
from allennlp.confidence_checks.task_checklists.question_answering_suite import ( | ||
QuestionAnsweringSuite, | ||
) | ||
from allennlp.confidence_checks.task_checklists.textual_entailment_suite import ( | ||
TextualEntailmentSuite, | ||
) | ||
except ImportError: | ||
warnings.warn( | ||
'To use the checklist integration you should install ``allennlp`` with the "checklist" ' | ||
"extra (e.g. ``pip install allennlp[checklist]``) or just install checklist after the fact." | ||
) | ||
raise |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
################################ | ||
###### Core dependencies ####### | ||
################################ | ||
torch>=1.6.0,<1.11.0 | ||
torchvision>=0.8.1,<0.12.0 | ||
cached-path>=1.0.2,<2.0.0 | ||
fairscale==0.4.5 | ||
jsonnet>=0.10.0 ; sys.platform != 'win32' | ||
nltk<3.6.6 | ||
spacy>=2.1.0,<3.3 | ||
numpy | ||
tensorboardX>=1.2 | ||
requests>=2.18 | ||
tqdm>=4.62 | ||
h5py | ||
scikit-learn | ||
scipy | ||
pytest | ||
transformers>=4.1,<4.17 | ||
sentencepiece | ||
dataclasses;python_version<'3.7' | ||
filelock>=3.3,<3.5 | ||
lmdb | ||
more-itertools | ||
termcolor==1.1.0 | ||
wandb>=0.10.0,<0.13.0 | ||
huggingface_hub>=0.0.16 | ||
datasets>=1.2.1,<2.0 | ||
dill | ||
base58 | ||
sqlitedict | ||
|
||
################################################## | ||
###### Extra dependencies for integrations ####### | ||
################################################## | ||
# NOTE: we use a special trailing comment on each line to denote which extras | ||
# each package is needed by. For example, checklist is needed by the 'checklist' extra | ||
# that you install with 'pip install allennlp[checklist]'. | ||
checklist==0.0.11 # needed by: checklist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.