From 06a1fad84150cd579e4b4e20421a3244f496bf46 Mon Sep 17 00:00:00 2001 From: Garvys Date: Fri, 9 Oct 2020 15:10:51 +0200 Subject: [PATCH] clean --- {openfst-addon => openfst_addon}/optimize.cpp | 2 -- rustfst-tests-data/main.cpp | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) rename {openfst-addon => openfst_addon}/optimize.cpp (98%) diff --git a/openfst-addon/optimize.cpp b/openfst_addon/optimize.cpp similarity index 98% rename from openfst-addon/optimize.cpp rename to openfst_addon/optimize.cpp index ef43f16a2..41bd121c0 100644 --- a/openfst-addon/optimize.cpp +++ b/openfst_addon/optimize.cpp @@ -184,10 +184,8 @@ void Optimize(fst::MutableFst *fst, bool compute_props = false) { using fst::kAcceptor; if (fst->Properties(kAcceptor, compute_props) != kAcceptor) { // The FST is (may be) a transducer. - std::cout << "Optimize transducer" << std::endl; OptimizeTransducer(fst, compute_props); } else { - std::cout << "Optimize acceptor" << std::endl; // The FST is (known to be) an acceptor. OptimizeAcceptor(fst, compute_props); } diff --git a/rustfst-tests-data/main.cpp b/rustfst-tests-data/main.cpp index 28535bfbb..f7d51ad39 100644 --- a/rustfst-tests-data/main.cpp +++ b/rustfst-tests-data/main.cpp @@ -37,7 +37,7 @@ #include "symt_001/symt_001.h" #include "symt_002/symt_002.h" -#include "../openfst-addon/optimize.cpp" +#include "../openfst_addon/optimize.cpp" int ID_FST_NUM = 0; @@ -73,8 +73,6 @@ template void compute_fst_optimize(const F& raw_fst, json& j, const string& dir_path) { auto fst_out = *raw_fst.Copy(); Optimize(&fst_out); - // std::cout << "Resuult Optimize = " << std::endl; - // PrintFst(fst_out); j["optimize"]["result_path"] = dump_fst(fst_out, dir_path); }