summaryrefslogtreecommitdiff
path: root/word-aligner
diff options
context:
space:
mode:
authorChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2012-11-24 20:25:51 -0500
committerChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2012-11-24 20:25:51 -0500
commitefa888a623913e72c5dd0e527ba7da014d52597e (patch)
tree8947818763ffea0b25bf1db6a824f452f3dfcb94 /word-aligner
parent147238b755eeeb4623ce74aad79d62c378b54ea5 (diff)
comment out asserts
Diffstat (limited to 'word-aligner')
-rw-r--r--word-aligner/da.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/word-aligner/da.h b/word-aligner/da.h
index add64a5b..5e6dfa92 100644
--- a/word-aligner/da.h
+++ b/word-aligner/da.h
@@ -11,17 +11,21 @@
struct DiagonalAlignment {
static double UnnormalizedProb(const unsigned i, const unsigned j, const unsigned m, const unsigned n, const double alpha) {
+#if 0
assert(i > 0);
assert(n > 0);
assert(m >= i);
assert(n >= j);
+#endif
return exp(feat(i, j, m, n) * alpha);
}
static double ComputeZ(const unsigned i, const unsigned m, const unsigned n, const double alpha) {
+#if 0
assert(i > 0);
assert(n > 0);
assert(m >= i);
+#endif
const double split = double(i) * n / m;
const unsigned floor = split;
unsigned ceil = floor + 1;