We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3268f58 commit 7619d2cCopy full SHA for 7619d2c
ctcdecode/__init__.py
@@ -9,7 +9,7 @@ def __init__(self, labels, model_path=None, alpha=0, beta=0, cutoff_top_n=40, cu
9
self._beam_width = beam_width
10
self._scorer = None
11
self._num_processes = num_processes
12
- self._labels = labels
+ self._labels = list(labels) # Ensure labels are a list
13
self._num_labels = len(labels)
14
self._blank_id = blank_id
15
self._log_probs = 1 if log_probs_input else 0
0 commit comments