Benchmark
BenchmarkABC
Bases: ABC
Interface that defines the operation and control of benchmarks.
Source code in asrbench\abc_benchmark.py
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 41 42 43 |
|
transcribers: Dict[str, Transcriber]
abstractmethod
property
Gets all the transcribers of the class.
add_transcriber(name, transcriber)
Add a transcriber to the class.
Source code in asrbench\abc_benchmark.py
29 30 31 32 33 34 35 36 |
|
remove_transcriber(name)
Removes the transcriber from the class.
Source code in asrbench\abc_benchmark.py
38 39 40 41 42 43 |
|
run()
abstractmethod
Run the transcription with each transcriber for each audio in each dataset of the class.
Source code in asrbench\abc_benchmark.py
18 19 20 21 22 |
|
run_with_transcriber(name)
abstractmethod
Runs the benchmark only with the chosen transcriber.
Source code in asrbench\abc_benchmark.py
24 25 26 27 |
|
BenchmarkContext
Controls the context and progress of Benchmark execution.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
datasets
|
List[Dataset]
|
List of datasets in the Benchmark class. |
required |
observer
|
Observer
|
Observer class to display progress to user. |
required |
Source code in asrbench\benchmark_ctx.py
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
dataset: Dataset
property
Get the dataset currently running.
reset_progress()
Restarts all execution progress.
Source code in asrbench\benchmark_ctx.py
43 44 45 46 |
|
set_dataset(idx)
Defines the dataset to be executed.
Source code in asrbench\benchmark_ctx.py
33 34 35 36 |
|
start_progress()
Progress timer starts.
Source code in asrbench\benchmark_ctx.py
38 39 40 41 |
|
update_progress(transcriber_name)
Updates progress status.
Source code in asrbench\benchmark_ctx.py
48 49 50 51 52 53 54 55 56 57 |
|