commit 588cf6a80db0d55d84a356ee0efc1039eb9f0e97 Author: Amr Keleg Date: Tue Jun 4 23:09:16 2019 +0200 Disjunct multiple FSTs encoded in the same at&t file Fixes #56 diff --git a/lttoolbox/att_compiler.cc b/lttoolbox/att_compiler.cc index a38b95e..a3c3d00 100644 --- a/lttoolbox/att_compiler.cc +++ b/lttoolbox/att_compiler.cc @@ -146,6 +146,11 @@ AttCompiler::parse(string const &file_name, wstring const &dir) } split(line, L'\t', tokens); + if (tokens[0].find('-') == 0) + { + wcerr << "Warning: Multiple fsts in '" << file_name << "' will be disjuncted." << endl; + continue; + } from = stoi(tokens[0]); AttNode* source = get_node(from);