summaryrefslogtreecommitdiff
path: root/gi/pyp-topics/src/train.cc
diff options
context:
space:
mode:
authorbothameister <bothameister@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-05 23:31:35 +0000
committerbothameister <bothameister@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-05 23:31:35 +0000
commite939fa567a3d33029b2f1084732b7472a48a9884 (patch)
tree7b3ee62272381463bd809b5139b109eadc82fcf9 /gi/pyp-topics/src/train.cc
parent11deae81f9c6bf8f85a29dfdf8b1531d7c563ef8 (diff)
migrating away from mt19937ar to Boost.Random - separate RNG instances used in various places
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@146 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/pyp-topics/src/train.cc')
-rw-r--r--gi/pyp-topics/src/train.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/gi/pyp-topics/src/train.cc b/gi/pyp-topics/src/train.cc
index c94010f2..3462f26c 100644
--- a/gi/pyp-topics/src/train.cc
+++ b/gi/pyp-topics/src/train.cc
@@ -12,7 +12,6 @@
#include "corpus.hh"
#include "contexts_corpus.hh"
#include "gzstream.hh"
-#include "mt19937ar.h"
static const char *REVISION = "$Rev$";
@@ -69,10 +68,9 @@ int main(int argc, char **argv)
return 1;
}
- // seed the random number generator
- //mt_init_genrand(time(0));
-
- PYPTopics model(vm["topics"].as<int>());
+ // seed the random number generator: 0 = automatic, specify value otherwise
+ unsigned long seed = 0;
+ PYPTopics model(vm["topics"].as<int>(), false, seed);
// read the data
Corpus corpus;