Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions runtime/core/frontend/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
add_library(frontend STATIC
lexicon.cc
g2p_en.cc
fst.cc
g2p_prosody.cc
word_break.cc
sentence_break.cc
Expand Down
5 changes: 4 additions & 1 deletion runtime/core/utils/fst.cc → runtime/core/frontend/fst.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "utils/fst.h"
#include "frontend/fst.h"

#include <string>
#include <vector>

#include "fst/rmepsilon.h"

Expand Down
8 changes: 4 additions & 4 deletions runtime/core/utils/fst.h → runtime/core/frontend/fst.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef UTILS_FST_H_
#define UTILS_FST_H_
#ifndef FRONTEND_FST_H_
#define FRONTEND_FST_H_

#include <string>
#include <vector>

#include "fst/fstlib.h"
#include "utils/log.h"

#include "utils/log.h"
#include "utils/string.h"

using fst::StdVectorFst;
Expand All @@ -44,4 +44,4 @@ void ShortestPath(const std::string& input, const StdVectorFst* fst,

} // namespace wetts

#endif // UTILS_FST_H_
#endif // FRONTEND_FST_H_
2 changes: 1 addition & 1 deletion runtime/core/frontend/g2p_en.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "utils/log.h"

#include "utils/fst.h"
#include "frontend/fst.h"
#include "utils/string.h"
#include "utils/utils.h"

Expand Down
1 change: 0 additions & 1 deletion runtime/core/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
add_library(utils STATIC
fst.cc
string.cc
utils.cc
)
Expand Down