Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Garvys committed Oct 9, 2020
1 parent d867aa9 commit 06a1fad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions openfst-addon/optimize.cpp → openfst_addon/optimize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,8 @@ void Optimize(fst::MutableFst<Arc> *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);
}
Expand Down
4 changes: 1 addition & 3 deletions rustfst-tests-data/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -73,8 +73,6 @@ template<class F>
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);
}

Expand Down

0 comments on commit 06a1fad

Please sign in to comment.