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