From 3a14b82844da615838bf83f07044b42fb4fc19ff Mon Sep 17 00:00:00 2001 From: Junkun Date: Tue, 30 Nov 2021 16:57:26 -0800 Subject: [PATCH] minor --- paddlespeech/s2t/frontend/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlespeech/s2t/frontend/utility.py b/paddlespeech/s2t/frontend/utility.py index 50fced25..e6c7603f 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, -- GitLab