mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 21:42:19 +03:00
add source labeller to EMS
This commit is contained in:
parent
c537d940a9
commit
27152ccce4
@ -67,7 +67,7 @@ void LabelDeEn(const Phrase &source, ostream &out)
|
||||
for (Ranges::const_iterator iter = ranges.begin(); iter != ranges.end(); ++iter) {
|
||||
const Range &range = *iter;
|
||||
if (range.first == pos) {
|
||||
out << "<tree label=\"REORDER-LABEL\"> ";
|
||||
out << "<tree label=\"reorder-label\"> ";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -55,8 +55,16 @@ truecase
|
||||
template-if: input-truecaser IN.$input-extension OUT.$input-extension -model IN1.$input-extension
|
||||
template-if: output-truecaser IN.$output-extension OUT.$output-extension -model IN1.$output-extension
|
||||
parallelizable: yes
|
||||
|
||||
source-label
|
||||
in: truecased-stem
|
||||
out: source-labelled
|
||||
default-name: corpus/labelled
|
||||
pass-unless: source-labeller
|
||||
template-if: source-labeller IN.$input-extension OUT.$input-extension
|
||||
|
||||
lowercase
|
||||
in: truecased-stem
|
||||
in: source-labelled
|
||||
out: lowercased-stem
|
||||
default-name: corpus/lowercased
|
||||
pass-unless: input-lowercaser output-lowercaser
|
||||
|
Loading…
Reference in New Issue
Block a user