forked from speechbrain/speechbrain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
40 lines (29 loc) · 920 Bytes
/
__init__.py
File metadata and controls
40 lines (29 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
""" Comprehensive speech processing toolkit
"""
import os
from .core import Brain, Stage, create_experiment_directory, parse_arguments
from .utils.importutils import deprecated_redirect, lazy_export_all
with open(
os.path.join(os.path.dirname(__file__), "version.txt"), encoding="utf-8"
) as f:
version = f.read().strip()
__all__ = [
"Stage",
"Brain",
"create_experiment_directory",
"parse_arguments",
]
__version__ = version
def make_deprecated_redirections():
sb1_0_redirect_str = (
"This is a change from SpeechBrain 1.0. "
"See: https://github.com/speechbrain/speechbrain/releases/tag/v1.0.0"
)
deprecated_redirect(
"speechbrain.pretrained",
"speechbrain.inference",
extra_reason=sb1_0_redirect_str,
also_lazy_export=True,
)
make_deprecated_redirections()
lazy_export_all(__file__, __name__, export_subpackages=True)