mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-02 17:09:36 +03:00
Merge branch 'master' of git://github.com/moses-smt/mosesdecoder
This commit is contained in:
commit
7ee22d40a8
1
Jamroot
1
Jamroot
@ -210,7 +210,6 @@ phrase-extract//pcfg-score
|
|||||||
phrase-extract//extract-mixed-syntax
|
phrase-extract//extract-mixed-syntax
|
||||||
biconcor
|
biconcor
|
||||||
mira//mira
|
mira//mira
|
||||||
contrib/server//mosesserver
|
|
||||||
mm
|
mm
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -138,6 +138,7 @@ int main(int argc, char** argv)
|
|||||||
mosesargs.push_back(config_file);
|
mosesargs.push_back(config_file);
|
||||||
for (size_t i = 0; i < parsed.options.size(); ++i) {
|
for (size_t i = 0; i < parsed.options.size(); ++i) {
|
||||||
if (parsed.options[i].position_key == -1 && !parsed.options[i].unregistered) continue;
|
if (parsed.options[i].position_key == -1 && !parsed.options[i].unregistered) continue;
|
||||||
|
/*
|
||||||
const string& key = parsed.options[i].string_key;
|
const string& key = parsed.options[i].string_key;
|
||||||
if (!key.empty()) {
|
if (!key.empty()) {
|
||||||
mosesargs.push_back(key);
|
mosesargs.push_back(key);
|
||||||
@ -147,6 +148,10 @@ int main(int argc, char** argv)
|
|||||||
if (!value.empty()) {
|
if (!value.empty()) {
|
||||||
mosesargs.push_back(value);
|
mosesargs.push_back(value);
|
||||||
}
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
for (size_t j = 0; j < parsed.options[i].original_tokens.size(); ++j) {
|
||||||
|
mosesargs.push_back(parsed.options[i].original_tokens[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user