-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows use of pydantic 2 by dependents.
Some applications wants to use pydantic2 but have been blocked by strict constraint on pydantic1 in mmda. This changeset allows the basic library to be used with either major version (but preserves the 1.x requirement for specific models so as not to break anything in S2's SPP pipeline).
- Loading branch information
Christopher Wilhelm
committed
Jun 5, 2024
1 parent
a39556d
commit 79fea27
Showing
3 changed files
with
35 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = 'mmda' | ||
version = '0.9.17' | ||
version = '0.9.18' | ||
description = 'MMDA - multimodal document analysis' | ||
authors = [ | ||
{name = 'Allen Institute for Artificial Intelligence', email = '[email protected]'}, | ||
|
@@ -14,7 +14,7 @@ dependencies = [ | |
'pdfplumber==0.7.4', | ||
'requests', | ||
'pandas<2', | ||
'pydantic<2', | ||
'pydantic[settings]>=1,<3', | ||
'ncls==0.0.66', | ||
'necessary>=0.3.2', | ||
] | ||
|
@@ -73,13 +73,15 @@ pysbd_predictors = [ | |
'pysbd', | ||
] | ||
heuristic_predictors = [ | ||
'tokenizers' | ||
'tokenizers', | ||
'pydantic>=1,<2', | ||
] | ||
lp_predictors = [ | ||
'layoutparser', | ||
'torch', | ||
'torchvision', | ||
'effdet', | ||
'pydantic>=1,<2' | ||
] | ||
hf_predictors = [ | ||
'torch', | ||
|
@@ -89,38 +91,45 @@ hf_predictors = [ | |
vila_predictors = [ | ||
'vila>=0.5,<0.6', | ||
'transformers<4.34.0', | ||
'pydantic>=1,<2', | ||
] | ||
mention_predictor = [ | ||
'transformers[torch]', | ||
'optimum[onnxruntime]' | ||
'optimum[onnxruntime]', | ||
'pydantic>=1,<2', | ||
] | ||
mention_predictor_gpu = [ | ||
'transformers[torch]', | ||
'optimum[onnxruntime-gpu]', | ||
'pydantic>=1,<2', | ||
] | ||
bibentry_predictor = [ | ||
'transformers', | ||
'unidecode', | ||
'torch', | ||
'optimum[onnxruntime]', | ||
'pydantic>=1,<2', | ||
] | ||
bibentry_predictor_gpu = [ | ||
'transformers', | ||
'unidecode', | ||
'torch', | ||
'optimum[onnxruntime-gpu]', | ||
'pydantic>=1,<2' | ||
] | ||
bibentry_detection_predictor = [ | ||
'Pillow<10', | ||
'layoutparser', | ||
'torch==1.8.0+cu111', | ||
'torchvision==0.9.0+cu111', | ||
'pydantic<=1,<2', | ||
] | ||
citation_links = [ | ||
'numpy', | ||
'thefuzz[speedup]', | ||
'scikit-learn', | ||
'xgboost', | ||
'pydantic>=1,<2', | ||
] | ||
section_nesting = [ | ||
'numpy', | ||
|
@@ -129,12 +138,14 @@ section_nesting = [ | |
] | ||
figure_table_predictors = [ | ||
'scipy', | ||
'pydantic>=1,<2', | ||
] | ||
svm_word_predictor = [ | ||
'scikit-learn', | ||
'scipy', | ||
'numpy', | ||
'tokenizers' | ||
'tokenizers', | ||
'pydantic>=1,<2', | ||
] | ||
recipes = [ | ||
'layoutparser', | ||
|
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