Factory
TranscriberFactoryABC
Bases: ABC
Source code in asrbench\transcribers\abc_factory.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
from_config(config)
abstractmethod
Set up transcribers dict from transcribers section in config file
Source code in asrbench\transcribers\abc_factory.py
13 14 15 16 17 18 19 |
|
get_transcriber(name, cfg)
abstractmethod
Get Transcriber with config
Source code in asrbench\transcribers\abc_factory.py
8 9 10 11 |
|
DefaultTranscriberFactory
Bases: TranscriberFactoryABC
Source code in asrbench\transcribers\factory.py
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 |
|
from_config(config)
Set up transcribers dict from transcribers section in config file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config
|
Dict[str, Dict[str, Any]]
|
transcribers section of the configuration file. |
required |
Source code in asrbench\transcribers\factory.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
get_transcriber(name, cfg)
Return TranscriberABC with config
Source code in asrbench\transcribers\factory.py
14 15 16 17 18 19 20 |
|