Skip to content
Snippets Groups Projects
Commit 6301912a authored by Adam Radziszewski's avatar Adam Radziszewski
Browse files

wcclrules fix stdin/files

parent d1d4bbc1
No related merge requests found
......@@ -163,12 +163,14 @@ int main(int argc, char** argv)
foreach (const std::string& f, files) {
if (boost::algorithm::ends_with(f, ".xml")) {
corpora_files.push_back(f);
corpus_stdin = false;
} else {
ccl_files.push_back(f);
}
}
// consider stdin only when no corpus files given
corpus_stdin = corpus_stdin && corpora_files.empty();
try {
const Corpus2::Tagset& tagset = Corpus2::get_named_tagset(tagset_load);
Wccl::Parser parser(tagset);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment