summaryrefslogtreecommitdiff
path: root/decoder/translator.cc
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-10-28 21:10:12 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-10-28 21:10:12 +0000
commit9e73380e46ada871ad114f4fd4238b8f2263ef27 (patch)
treeecd759d7e5c2c87f23ed90596d9c198042dffae9 /decoder/translator.cc
parent7a87c0b62eaa5ef27b0642fc4cae9ee5c4cd6a8b (diff)
psg for lex trans
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@699 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/translator.cc')
-rw-r--r--decoder/translator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/translator.cc b/decoder/translator.cc
index 277c3a2d..d1ca125b 100644
--- a/decoder/translator.cc
+++ b/decoder/translator.cc
@@ -43,7 +43,7 @@ void Translator::SentenceComplete() {
// this may be overridden by translators that want to accept
// metadata
void Translator::ProcessMarkupHintsImpl(const map<string, string>& kv) {
- int unprocessed = kv.size() - kv.count("id");
+ int unprocessed = kv.size() - kv.count("id") - kv.count("psg");
if (!SILENT) cerr << "Inside translator process hints\n";
if (unprocessed > 0) {
cerr << "Sentence markup contains unprocessed data:\n";