diff options
author | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-06-23 22:07:34 +0000 |
---|---|---|
committer | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-06-23 22:07:34 +0000 |
commit | 8cfda7b7677801f30ef15e319f6ac49847a5a6c9 (patch) | |
tree | 78e7339506c965a080bf361ff8bbf9452374c606 /gi/clda | |
parent | 7c26e270a555d524c4e6eebf572e115213ed2695 (diff) |
very simple local grammar induction pipeline
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@16 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/clda')
-rw-r--r-- | gi/clda/src/clda.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gi/clda/src/clda.cc b/gi/clda/src/clda.cc index 574fa038..05cbb441 100644 --- a/gi/clda/src/clda.cc +++ b/gi/clda/src/clda.cc @@ -7,6 +7,7 @@ #include "sampler.h" #include "tdict.h" const size_t MAX_DOC_LEN_CHARS = 1000000; +#include <boost/math/distributions/beta.hpp> using namespace std; @@ -24,6 +25,8 @@ void ShowTopWordsForTopic(const map<WordID, int>& counts) { } int main(int argc, char** argv) { + boost::math::beta_distribution<double> bd(2.0,5.0); + cerr << pdf(bd, 0.2152132) << endl; if (argc != 3) { cerr << "Usage: " << argv[0] << " num-classes num-samples\n"; return 1; |