diff options
| author | bothameister <bothameister@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-05 23:31:35 +0000 | 
|---|---|---|
| committer | bothameister <bothameister@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-05 23:31:35 +0000 | 
| commit | 41446328cf06a64e729835719d99fef33ec59941 (patch) | |
| tree | 967881e3e967d65a620d060ece9f8b6e6bc99cca /gi/pyp-topics/src/train-contexts.cc | |
| parent | f417aa33ee1e1ff2a301128ed08aa9dba7c2ff6b (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-contexts.cc')
| -rw-r--r-- | gi/pyp-topics/src/train-contexts.cc | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/gi/pyp-topics/src/train-contexts.cc b/gi/pyp-topics/src/train-contexts.cc index 481f8926..8a0c8949 100644 --- a/gi/pyp-topics/src/train-contexts.cc +++ b/gi/pyp-topics/src/train-contexts.cc @@ -14,7 +14,6 @@  #include "corpus.hh"  #include "contexts_corpus.hh"  #include "gzstream.hh" -#include "mt19937ar.h"  static const char *REVISION = "$Rev$"; @@ -78,10 +77,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>(), vm.count("hierarchical-topics")); +  // seed the random number generator: 0 = automatic, specify value otherwise +  unsigned long seed = 0;  +  PYPTopics model(vm["topics"].as<int>(), vm.count("hierarchical-topics"), seed);    // read the data    BackoffGenerator* backoff_gen=0; | 
