From f272eb4ef78e12a1ef4ae451b114f980a2682d51 Mon Sep 17 00:00:00 2001 From: jianganghan <jiangangh@gmail.com> Date: 星期四, 29 二月 2024 09:35:34 +0800 Subject: [PATCH] Fix two bugs for blank voice (empty speech): (#1403) --- funasr/models/transducer/beam_search_transducer.py | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/funasr/models/transducer/beam_search_transducer.py b/funasr/models/transducer/beam_search_transducer.py index 04b26b3..f599615 100644 --- a/funasr/models/transducer/beam_search_transducer.py +++ b/funasr/models/transducer/beam_search_transducer.py @@ -1,10 +1,12 @@ -"""Search algorithms for Transducer models.""" +#!/usr/bin/env python3 +# -*- encoding: utf-8 -*- +# Copyright FunASR (https://github.com/alibaba-damo-academy/FunASR). All Rights Reserved. +# MIT License (https://opensource.org/licenses/MIT) +import torch +import numpy as np from dataclasses import dataclass from typing import Any, Dict, List, Optional, Tuple, Union - -import numpy as np -import torch from funasr.models.transducer.joint_network import JointNetwork -- Gitblit v1.9.1