Skip to content
Snippets Groups Projects
Commit d7bd140a authored by Bartosz Walkowiak's avatar Bartosz Walkowiak
Browse files

Else instead of break

parent e34b3884
No related branches found
No related tags found
No related merge requests found
Pipeline #21742 passed
...@@ -231,9 +231,9 @@ void MorphoDitaWorker::process(std::string task_path, boost::property_tree::ptre ...@@ -231,9 +231,9 @@ void MorphoDitaWorker::process(std::string task_path, boost::property_tree::ptre
string model=mo ? mo.get():"XXI"; string model=mo ? mo.get():"XXI";
if (boost::filesystem::exists(output_path)) if (boost::filesystem::exists(output_path))
{ cout<<"File allready exists, exiting."; cout<<"File allready exists, exiting.";
break; else
} {
ifstream is(task_path); ifstream is(task_path);
ofstream os; ofstream os;
...@@ -251,7 +251,7 @@ void MorphoDitaWorker::process(std::string task_path, boost::property_tree::ptre ...@@ -251,7 +251,7 @@ void MorphoDitaWorker::process(std::string task_path, boost::property_tree::ptre
tag_raw(is, os, *_tagger, *_tokenizer, *tagset_converter,*derivation, guesser,ifallforms,*_tagger->get_morpho(),guesser); tag_raw(is, os, *_tagger, *_tokenizer, *tagset_converter,*derivation, guesser,ifallforms,*_tagger->get_morpho(),guesser);
boost::this_thread::sleep( boost::posix_time::milliseconds(20) ); boost::this_thread::sleep( boost::posix_time::milliseconds(20) );
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment