fix ERNIE-SAT bug when edit the end of sentenses, test=doc (#2432)

pull/2451/head
TianYuan 2 years ago committed by GitHub
parent b14da765e8
commit 52af86fcc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -285,7 +285,7 @@ def get_phns_spans(wav_path: str,
break
# reverse w2p and new_w2p
right_idx = 0
right_idx = len(new_phns)
new_phns_right = []
sp_count = 0
w2p_max_idx = _get_max_idx(w2p)

Loading…
Cancel
Save