diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-02-17 13:01:54 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-02-17 13:01:54 -0500 |
commit | 4845fbb1288c92ce73f84d3c7878b7c81dc09654 (patch) | |
tree | 5202ee5e0699c3178a7c0288d79419c44a964e9f /training/ttables.h | |
parent | dbe064a15aa78b344d13db5bd831cc9e0a9bbac1 (diff) |
boost version checking, check for Eigen, get rid of old digamma stuff
Diffstat (limited to 'training/ttables.h')
-rw-r--r-- | training/ttables.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/training/ttables.h b/training/ttables.h index 50d85a68..bf3351d2 100644 --- a/training/ttables.h +++ b/training/ttables.h @@ -4,9 +4,9 @@ #include <iostream> #include <tr1/unordered_map> +#include "m.h" #include "wordid.h" #include "tdict.h" -#include "em_utils.h" class TTable { public: @@ -39,7 +39,7 @@ class TTable { for (Word2Double::iterator it = cpd.begin(); it != cpd.end(); ++it) tot += it->second + alpha; for (Word2Double::iterator it = cpd.begin(); it != cpd.end(); ++it) - it->second = exp(digamma(it->second + alpha) - digamma(tot)); + it->second = exp(Md::digamma(it->second + alpha) - Md::digamma(tot)); } counts.clear(); } |