summaryrefslogtreecommitdiff
path: root/decoder/scfg_translator.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@chriss-air.local.tld>2013-12-26 20:21:06 -0600
committerChris Dyer <cdyer@chriss-air.local.tld>2013-12-26 20:21:06 -0600
commit3c22963a360346381588350962499d1a76a89c10 (patch)
tree2fa861a44d4a458a09d616426f769fd654441838 /decoder/scfg_translator.cc
parentfa2bdf24a6d5680e7cbae215b8715996df51299c (diff)
add support for epsilons in input lattice
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 {