add source labeller to EMS

This commit is contained in:
Hieu Hoang 2014-01-20 23:26:06 +00:00
parent c537d940a9
commit 27152ccce4
2 changed files with 10 additions and 2 deletions

View File

@ -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\"> ";
}
}

View File

@ -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