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 | 6972dd2b8658bcee941e7ddaf21537326818622a (patch) | |
tree | 945f5b599bd2eb7459b57ccd30b310a685a05ad6 | |
parent | f58ef1eca79e085fad0ddc6a277c5f9ada346934 (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; |