From 5ed01d87524dc4471e4fe601e528b2753f0038b6 Mon Sep 17 00:00:00 2001 From: redpony Date: Wed, 23 Jun 2010 22:07:34 +0000 Subject: very simple local grammar induction pipeline git-svn-id: https://ws10smt.googlecode.com/svn/trunk@16 ec762483-ff6d-05da-a07a-a48fb63a330f --- gi/clda/src/clda.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gi/clda/src/clda.cc') 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 using namespace std; @@ -24,6 +25,8 @@ void ShowTopWordsForTopic(const map& counts) { } int main(int argc, char** argv) { + boost::math::beta_distribution 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; -- cgit v1.2.3