Skip to content
Snippets Groups Projects
Commit 734eb472 authored by ilor's avatar ilor
Browse files

match rules testing tweak

parent 76df4c19
No related branches found
No related tags found
No related merge requests found
...@@ -152,7 +152,7 @@ void test_one_rule_item_actual(const rule_compare_test& c) ...@@ -152,7 +152,7 @@ void test_one_rule_item_actual(const rule_compare_test& c)
} }
boost::shared_ptr<Corpus2::TokenReader> reader; boost::shared_ptr<Corpus2::TokenReader> reader;
std::string ofn = c.output_corpus.filename(); std::string ofn = c.output_corpus.filename();
if (ofn.find("ccl") != ofn.npos) { if (ofn.find("ccl") != ofn.npos || ofn.find("match") != ofn.npos) {
reader = Corpus2::TokenReader::create_path_reader("ccl", tagset, c.output_corpus.string()); reader = Corpus2::TokenReader::create_path_reader("ccl", tagset, c.output_corpus.string());
} else { } else {
reader = Corpus2::TokenReader::create_path_reader("xces", tagset, c.output_corpus.string()); reader = Corpus2::TokenReader::create_path_reader("xces", tagset, c.output_corpus.string());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment