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

Else instead of break

parent e34b3884
Branches master
No related merge requests found
Pipeline #21742 passed with stage
in 1 minute and 42 seconds
...@@ -231,27 +231,27 @@ void MorphoDitaWorker::process(std::string task_path, boost::property_tree::ptre ...@@ -231,27 +231,27 @@ 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;
os.open(output_path); os.open(output_path);
/*bool ambiguity = task_options["ambiguity"].empty() ? false : option.get(s["ambiguity"]); /*bool ambiguity = task_options["ambiguity"].empty() ? false : option.get(s["ambiguity"]);
bool chunks = task_options["chunks"].empty() ? false : str2bool(task_options["chunks"]); bool chunks = task_options["chunks"].empty() ? false : str2bool(task_options["chunks"]);
this->logger->task_trace(task_token, "Variables set."); this->logger->task_trace(task_token, "Variables set.");
this->logger->task_debug(task_token, "Tagging input from file " + task_path); this->logger->task_debug(task_token, "Tagging input from file " + task_path);
*/ */
//tag_raw(is, os, *my_tagger, *my_tokenizer, *tagset_converter, *derivation, guesserT == "yes" ? 1:0, *my_morpho, guesserD == "yes" ? 1:0); //tag_raw(is, os, *my_tagger, *my_tokenizer, *tagset_converter, *derivation, guesserT == "yes" ? 1:0, *my_morpho, guesserD == "yes" ? 1:0);
if(model == "XIX" && _taggerxix != NULL) if(model == "XIX" && _taggerxix != NULL)
tag_raw(is, os, *_taggerxix, *_tokenizerxix, *tagset_converter,*derivation, guesser,ifallforms,*_taggerxix->get_morpho(),guesser); tag_raw(is, os, *_taggerxix, *_tokenizerxix, *tagset_converter,*derivation, guesser,ifallforms,*_taggerxix->get_morpho(),guesser);
else else
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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment