This repository has been 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.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* requirements and setup * allow for optional dependencies * fix script * update changelog * fix * fix format * fix * update ci * fix makefile * fix makefile * catch import errors * install everything * install all dependencies * update * add missing requirements file * oops, missing changes * fix ci, import warning * update key * fix * remove quotation marks * fix again * update cache prefix * update Makefile too * and docs too? * remove extra warnings * update dockerfile * suppress warning, mention in docs * one more fix to Dockerfile * fix test package * fix * Update README.md Co-authored-by: Pete <petew@allenai.org> * Update README.md Co-authored-by: Pete <petew@allenai.org> Co-authored-by: Pete <petew@allenai.org>
- Loading branch information
Showing
13 changed files
with
186 additions
and
62 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 ( | ||
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 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 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 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.