Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
morphodita
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nlpworkers
morphodita
Commits
d7bd140a
Commit
d7bd140a
authored
5 months ago
by
Bartosz Walkowiak
Browse files
Options
Downloads
Patches
Plain Diff
Else instead of break
parent
e34b3884
Branches
master
No related merge requests found
Pipeline
#21742
passed with stage
Stage:
in 1 minute and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/morphoDita_service.cpp
+20
-20
20 additions, 20 deletions
src/morphoDita_service.cpp
with
20 additions
and
20 deletions
src/morphoDita_service.cpp
+
20
−
20
View file @
d7bd140a
...
@@ -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
)
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment