summaryrefslogtreecommitdiff
path: root/decoder/hg.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-26 01:07:36 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-26 01:07:36 +0000
commitb2ad842245f1645e4e9f3c60a80a07e13151a560 (patch)
tree7cb1d788b29b64964d5eec1f099193f8ed5d8a8f /decoder/hg.h
parentdc78bb0d8590033475404c1950fa49e984e2108a (diff)
stateful ff_from_fsa works - fixed bug that never moved right state from rightmost variable up to result
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@413 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/hg.h')
-rw-r--r--decoder/hg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/hg.h b/decoder/hg.h
index 6dd10584..ea0e8aa1 100644
--- a/decoder/hg.h
+++ b/decoder/hg.h
@@ -98,7 +98,7 @@ public:
void copy_info(Edge const& o) {
#if USE_INFO_EDGE
- set_info(o.info_.str());
+ set_info(o.info_.str()); // by convention, each person putting info here starts with a separator (e.g. space). it's empty if nobody put any info there.
#endif
}
void copy_pod(Edge const& o) {
@@ -157,7 +157,7 @@ public:
o<<rule_->AsString(mask&RULE_LHS);
if (USE_INFO_EDGE) {
std::string const& i=info();
- if (mask&&!i.empty()) o << " ||| "<<i;
+ if (mask&&!i.empty()) o << " |||"<<i; // remember, the initial space is expected as part of i
}
o<<'}';
}