File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change 13
13
from . import pipeline # noqa: F401
14
14
from . import util
15
15
from .about import __version__ # noqa: F401
16
+ from .cli .info import info # noqa: F401
16
17
from .errors import Errors
17
18
from .glossary import explain # noqa: F401
18
19
from .language import Language
@@ -76,9 +77,3 @@ def blank(
76
77
# We should accept both dot notation and nested dict here for consistency
77
78
config = util .dot_to_dict (config )
78
79
return LangClass .from_config (config , vocab = vocab , meta = meta )
79
-
80
-
81
- def info (* args , ** kwargs ):
82
- from .cli .info import info as cli_info
83
-
84
- return cli_info (* args , ** kwargs )
Original file line number Diff line number Diff line change 12
12
13
13
import spacy
14
14
from spacy import about
15
- from spacy import info as spacy_info
16
15
from spacy .cli import info
17
16
from spacy .cli ._util import parse_config_overrides , string_to_list , walk_directory
18
17
from spacy .cli .apply import apply
@@ -193,9 +192,6 @@ def test_cli_info():
193
192
raw_data = info (tmp_dir , exclude = ["" ])
194
193
assert raw_data ["lang" ] == "nl"
195
194
assert raw_data ["components" ] == ["textcat" ]
196
- raw_data = spacy_info (tmp_dir , exclude = ["" ])
197
- assert raw_data ["lang" ] == "nl"
198
- assert raw_data ["components" ] == ["textcat" ]
199
195
200
196
201
197
def test_cli_converters_conllu_to_docs ():
You can’t perform that action at this time.
0 commit comments