diff --git a/paddlespeech/s2t/frontend/utility.py b/paddlespeech/s2t/frontend/utility.py index 50fced25eae4a69aef99a99e8c8d5620aa54c4c2..e6c7603fa20a8fcfa91ced38a61f1b329191ddf5 100644 --- a/paddlespeech/s2t/frontend/utility.py +++ b/paddlespeech/s2t/frontend/utility.py @@ -104,7 +104,7 @@ def read_manifest( feat_len = json_data["input"][0]["shape"][ 0] if "input" in json_data and "shape" in json_data["input"][0] else 1.0 token_len = json_data["output"][0]["shape"][ - 0] if "output" in json_data and "shape" in json_data["input"][0] else 1.0 + 0] if "output" in json_data and "shape" in json_data["output"][0] else 1.0 conditions = [ feat_len >= min_input_len, feat_len <= max_input_len,