|
|
|
@ -11,15 +11,3 @@
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
|
# limitations under the License.
|
|
|
|
|
from paddlespeech.s2t.utils.log import Log
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
from .ctcdecoder import swig_wrapper
|
|
|
|
|
except:
|
|
|
|
|
logger = Log(__name__).getlog()
|
|
|
|
|
try:
|
|
|
|
|
from paddlespeech.s2t.utils import dynamic_pip_install
|
|
|
|
|
package_name = 'paddlespeech_ctcdecoders'
|
|
|
|
|
dynamic_pip_install.install(package_name)
|
|
|
|
|
except Exception as e:
|
|
|
|
|
logger.info("paddlespeech_ctcdecoders not installed!")
|
|
|
|
|