Skip to content

Commit caa1f63

Browse files
authored
update: requirements (#1578)
1 parent e4d842e commit caa1f63

24 files changed

+41
-125
lines changed

deeppavlov/core/common/file.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
from pathlib import Path
2020
from typing import Union, Any
2121

22-
from ruamel.yaml import YAML
23-
2422
from deeppavlov.core.common.aliases import ALIASES
2523

2624
log = getLogger(__name__)
@@ -69,9 +67,3 @@ def save_pickle(data: dict, fpath: Union[str, Path]) -> None:
6967
def load_pickle(fpath: Union[str, Path]) -> Any:
7068
with open(fpath, 'rb') as fin:
7169
return pickle.load(fin)
72-
73-
74-
def read_yaml(fpath: Union[str, Path]) -> dict:
75-
yaml = YAML(typ="safe")
76-
with open(fpath, encoding='utf8') as fin:
77-
return yaml.load(fin)

deeppavlov/core/common/registry.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
"torch_transformers_preprocessor": "deeppavlov.models.preprocessors.torch_transformers_preprocessor:TorchTransformersPreprocessor",
9696
"torch_transformers_sequence_tagger": "deeppavlov.models.torch_bert.torch_transformers_sequence_tagger:TorchTransformersSequenceTagger",
9797
"torch_transformers_squad": "deeppavlov.models.torch_bert.torch_transformers_squad:TorchTransformersSquad",
98-
"torchtext_classification_data_reader": "deeppavlov.dataset_readers.torchtext_classification_data_reader:TorchtextClassificationDataReader",
9998
"transformers_bert_embedder": "deeppavlov.models.embedders.transformers_embedder:TransformersBertEmbedder",
10099
"transformers_bert_preprocessor": "deeppavlov.models.preprocessors.transformers_preprocessor:TransformersBertPreprocessor",
101100
"tree_to_sparql": "deeppavlov.models.kbqa.tree_to_sparql:TreeToSparql",

deeppavlov/core/common/requirements_registry.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"answer_types_extractor": [
33
"{DEEPPAVLOV_PATH}/requirements/en_core_web_sm.txt",
4-
"{DEEPPAVLOV_PATH}/requirements/ru_core_news_sm.txt",
5-
"{DEEPPAVLOV_PATH}/requirements/spacy.txt"
4+
"{DEEPPAVLOV_PATH}/requirements/ru_core_news_sm.txt"
65
],
76
"entity_linker": [
87
"{DEEPPAVLOV_PATH}/requirements/hdt.txt",
@@ -28,12 +27,13 @@
2827
"{DEEPPAVLOV_PATH}/requirements/pytorch.txt",
2928
"{DEEPPAVLOV_PATH}/requirements/transformers.txt"
3029
],
30+
"nltk_moses_tokenizer": [
31+
"{DEEPPAVLOV_PATH}/requirements/sacremoses.txt"
32+
],
3133
"query_generator": [
32-
"{DEEPPAVLOV_PATH}/requirements/bs4.txt",
3334
"{DEEPPAVLOV_PATH}/requirements/en_core_web_sm.txt",
3435
"{DEEPPAVLOV_PATH}/requirements/hdt.txt",
3536
"{DEEPPAVLOV_PATH}/requirements/rapidfuzz.txt",
36-
"{DEEPPAVLOV_PATH}/requirements/spacy.txt",
3737
"{DEEPPAVLOV_PATH}/requirements/whapi.txt"
3838
],
3939
"re_classifier": [
@@ -51,8 +51,7 @@
5151
],
5252
"rel_ranking_infer": [
5353
"{DEEPPAVLOV_PATH}/requirements/en_core_web_sm.txt",
54-
"{DEEPPAVLOV_PATH}/requirements/hdt.txt",
55-
"{DEEPPAVLOV_PATH}/requirements/spacy.txt"
54+
"{DEEPPAVLOV_PATH}/requirements/hdt.txt"
5655
],
5756
"rel_ranking_preprocessor": [
5857
"{DEEPPAVLOV_PATH}/requirements/pytorch.txt",
@@ -77,8 +76,7 @@
7776
"{DEEPPAVLOV_PATH}/requirements/lxml.txt"
7877
],
7978
"stream_spacy_tokenizer": [
80-
"{DEEPPAVLOV_PATH}/requirements/en_core_web_sm.txt",
81-
"{DEEPPAVLOV_PATH}/requirements/spacy.txt"
79+
"{DEEPPAVLOV_PATH}/requirements/en_core_web_sm.txt"
8280
],
8381
"torch_bert_ranker": [
8482
"{DEEPPAVLOV_PATH}/requirements/pytorch.txt",
@@ -140,9 +138,6 @@
140138
"{DEEPPAVLOV_PATH}/requirements/pytorch.txt",
141139
"{DEEPPAVLOV_PATH}/requirements/transformers.txt"
142140
],
143-
"torchtext_classification_data_reader": [
144-
"{DEEPPAVLOV_PATH}/requirements/torchtext.txt"
145-
],
146141
"transformers_bert_embedder": [
147142
"{DEEPPAVLOV_PATH}/requirements/pytorch.txt",
148143
"{DEEPPAVLOV_PATH}/requirements/transformers.txt"

deeppavlov/dataset_readers/torchtext_classification_data_reader.py

Lines changed: 0 additions & 60 deletions
This file was deleted.

deeppavlov/requirements/bs4.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
datasets==1.11.0
1+
datasets>=1.16.0,<2.4.0
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.2.0/en_core_web_sm-3.2.0.tar.gz#egg=en_core_web_sm==3.2.0
1+
https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.3.0/en_core_web_sm-3.3.0-py3-none-any.whl
2+
spacy
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fasttext==0.9.1
1+
fasttext==0.9.*

deeppavlov/requirements/hdt.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
# TODO: hdt has pybind11 in requirements but imports it in the setup.py before installation. Should be fixed.
2-
# fasttext==0.9.1 installs pybind11==2.9.1. If install pybind11==2.2.4 after that two times, second installation will raise error Cannot uninstall pybind11 2.9.1, RECORD file not found.
31
hdt==2.3

deeppavlov/requirements/lxml.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lxml==4.4.2
1+
lxml==4.9.*

0 commit comments

Comments
 (0)