summaryrefslogtreecommitdiff
path: root/decoder/scfg_translator.cc
diff options
context:
space:
mode:
authormjdenkowski <michael.j.denkowski@gmail.com>2013-12-29 17:16:43 -0500
committermjdenkowski <michael.j.denkowski@gmail.com>2013-12-29 17:16:43 -0500
commit4a7d32f097235bc797435114bcf31752da9a8114 (patch)
tree2384a3e92863fe6ce0fddb3758ffc6e2604bbc05 /decoder/scfg_translator.cc
parenta71fc6250617808382faf28e9cad1dad0821a6da (diff)
parent70d40b49fb797c1ac0ede30ff031ccafba740234 (diff)
Merge branch 'master' of https://github.com/redpony/cdec
Diffstat (limited to 'decoder/scfg_translator.cc')
-rw-r--r--decoder/scfg_translator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/scfg_translator.cc b/decoder/scfg_translator.cc
index a506c591..236d7c90 100644
--- a/decoder/scfg_translator.cc
+++ b/decoder/scfg_translator.cc
@@ -78,7 +78,7 @@ PassThroughGrammar::PassThroughGrammar(const Lattice& input, const string& cat,
}
bool PassThroughGrammar::HasRuleForSpan(int, int, int distance) const {
- return (distance < 2);
+ return (distance < 4); // TODO this isn't great, but helps with EPS lattices
}
struct SCFGTranslatorImpl {