From 2c26ae45bc532277ce3c25f8fbc6ef7d69d2d85c Mon Sep 17 00:00:00 2001 From: roney123 Date: Wed, 27 Mar 2024 13:53:31 +0800 Subject: [PATCH] fix not use ITN, now ITN is must (#2444) Co-authored-by: roney <648662976@qq.com> --- runtime/core/post_processor/CMakeLists.txt | 6 +----- runtime/ipex/CMakeLists.txt | 7 ++----- runtime/libtorch/CMakeLists.txt | 5 +---- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/runtime/core/post_processor/CMakeLists.txt b/runtime/core/post_processor/CMakeLists.txt index 4b0e61348..74a0c1c9c 100644 --- a/runtime/core/post_processor/CMakeLists.txt +++ b/runtime/core/post_processor/CMakeLists.txt @@ -1,9 +1,5 @@ add_library(post_processor STATIC post_processor.cc ) -if(ITN) - target_link_libraries(post_processor PUBLIC utils wetext_processor wetext_utils) -else() - target_link_libraries(post_processor PUBLIC utils) -endif() +target_link_libraries(post_processor PUBLIC utils wetext_processor wetext_utils) diff --git a/runtime/ipex/CMakeLists.txt b/runtime/ipex/CMakeLists.txt index ea17d9d6b..c51ff02f9 100644 --- a/runtime/ipex/CMakeLists.txt +++ b/runtime/ipex/CMakeLists.txt @@ -10,7 +10,6 @@ option(GRPC "whether to build with gRPC" OFF) option(WEBSOCKET "whether to build with websocket" OFF) option(HTTP "whether to build with http" OFF) option(TORCH "whether to build with Torch" ON) -option(ITN "whether to use WeTextProcessing" ON) option(IPEX "whether to build with Torch+IPEX" ON) set(CMAKE_VERBOSE_MAKEFILE OFF) @@ -31,9 +30,7 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/kaldi ) -if(ITN) - include(wetextprocessing) -endif() + include(wetextprocessing) # Build all libraries add_subdirectory(utils) @@ -68,4 +65,4 @@ add_subdirectory(bin) if(BUILD_TESTING) include(gtest) add_subdirectory(test) -endif() \ No newline at end of file +endif() diff --git a/runtime/libtorch/CMakeLists.txt b/runtime/libtorch/CMakeLists.txt index b89647e7c..d323385d5 100644 --- a/runtime/libtorch/CMakeLists.txt +++ b/runtime/libtorch/CMakeLists.txt @@ -14,7 +14,6 @@ option(HTTP "whether to build with http" OFF) option(TORCH "whether to build with Torch" ON) option(ONNX "whether to build with ONNX" OFF) option(GPU "whether to build with GPU" OFF) -option(ITN "whether to use WeTextProcessing" ON) set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -g") set(CMAKE_VERBOSE_MAKEFILE OFF) @@ -48,9 +47,7 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/kaldi ) -if(ITN) - include(wetextprocessing) -endif() +include(wetextprocessing) # Build all libraries add_subdirectory(utils)