fix ctc scorer name

pull/916/head
Hui Zhang 3 years ago
parent 6257eda00e
commit 26a4a46c41

@ -15,8 +15,8 @@
import numpy as np
import paddle
from .ctc_prefix_score import CTCPrefixScore
from .ctc_prefix_score import CTCPrefixScorePD
from .ctc_prefix_score import CTCPrefixScorer
from .ctc_prefix_score import CTCPrefixScorerPD
from .scorer_interface import BatchPartialScorerInterface

@ -6,7 +6,7 @@ import paddle
import six
class CTCPrefixScorePD():
class CTCPrefixScorerPD():
"""Batch processing of CTCPrefixScore
which is based on Algorithm 2 in WATANABE et al.
@ -267,7 +267,7 @@ class CTCPrefixScorePD():
return (r_prev_new, s_prev, f_min_prev, f_max_prev)
class CTCPrefixScore():
class CTCPrefixScorer():
"""Compute CTC label sequence scores
which is based on Algorithm 2 in WATANABE et al.

Loading…
Cancel
Save