diff options
author | Chris Dyer <cdyer@allegro.clab.cs.cmu.edu> | 2012-11-24 20:25:51 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@allegro.clab.cs.cmu.edu> | 2012-11-24 20:25:51 -0500 |
commit | efa888a623913e72c5dd0e527ba7da014d52597e (patch) | |
tree | 8947818763ffea0b25bf1db6a824f452f3dfcb94 | |
parent | 147238b755eeeb4623ce74aad79d62c378b54ea5 (diff) |
comment out asserts
-rw-r--r-- | word-aligner/da.h | 4 |
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; |