summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-08-11 22:41:30 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2012-08-11 22:41:30 -0400
commit7f688a6a4ef605dea284b096889f1735406123b6 (patch)
treed52541603566cac248b53e461abf84e0d8143432
parenta3cd6d3e39ff88f85325134e009b0f2a87e92d39 (diff)
remove extra eos marker
-rw-r--r--gi/pf/pyp_lm.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/gi/pf/pyp_lm.cc b/gi/pf/pyp_lm.cc
index e2b67e17..7cec437a 100644
--- a/gi/pf/pyp_lm.cc
+++ b/gi/pf/pyp_lm.cc
@@ -167,8 +167,6 @@ int main(int argc, char** argv) {
lm.increment(w, ctx, &rng);
ctx.push_back(w);
}
- if (SS > 0) lm.decrement(kEOS, ctx, &rng);
- lm.increment(kEOS, ctx, &rng);
}
if (SS % 10 == 9) {
cerr << " [LLH=" << lm.log_likelihood() << "]" << endl;