From 32c9c007da57f681dd833c9c789f84446bac7bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xingchen=20Song=28=E5=AE=8B=E6=98=9F=E8=BE=B0=29?= Date: Wed, 11 Oct 2023 09:25:52 +0800 Subject: [PATCH] fix(wenetruntime): add ITN for python bingding (#2042) --- runtime/binding/python/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtime/binding/python/CMakeLists.txt b/runtime/binding/python/CMakeLists.txt index 256351572..fdd7b5a80 100644 --- a/runtime/binding/python/CMakeLists.txt +++ b/runtime/binding/python/CMakeLists.txt @@ -4,6 +4,8 @@ project(wenet VERSION 0.1) option(TORCH "whether to build with Torch" ON) option(ONNX "whether to build with ONNX" OFF) +option(ITN "whether to use WeTextProcessing" ON) + set(CXX11_ABI OFF) set(FST_HAVE_BIN OFF) set(CMAKE_VERBOSE_MAKEFILE OFF) @@ -39,6 +41,10 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/kaldi ) +if(ITN) + include(wetextprocessing) +endif() + add_subdirectory(utils) add_subdirectory(frontend) add_subdirectory(post_processor)