summaryrefslogtreecommitdiff
path: root/dtrain/dtrain.h
diff options
context:
space:
mode:
authorPatrick Simianer <simianer@cl.uni-heidelberg.de>2012-04-26 21:39:11 +0200
committerPatrick Simianer <simianer@cl.uni-heidelberg.de>2012-04-26 21:39:11 +0200
commit35527b4691c6ca08694e2235e1c469f155a31c47 (patch)
treee90c14cb05458db972bd70bf6829614d9c70c1e3 /dtrain/dtrain.h
parentfde1df3ee578564f78d7d0eac453dcb3f1740e05 (diff)
made pair sampling configurable
Diffstat (limited to 'dtrain/dtrain.h')
-rw-r--r--dtrain/dtrain.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/dtrain/dtrain.h b/dtrain/dtrain.h
index ac13995a..7b03d258 100644
--- a/dtrain/dtrain.h
+++ b/dtrain/dtrain.h
@@ -13,7 +13,7 @@
#include "filelib.h"
-#define DTRAIN_LOCAL
+//#define DTRAIN_LOCAL
#define DTRAIN_DOTS 10 // after how many inputs to display a '.'
#define DTRAIN_GRAMMAR_DELIM "########EOS########"
@@ -23,13 +23,15 @@ using namespace std;
using namespace dtrain;
namespace po = boost::program_options;
-inline void register_and_convert(const vector<string>& strs, vector<WordID>& ids) {
+inline void register_and_convert(const vector<string>& strs, vector<WordID>& ids)
+{
vector<string>::const_iterator it;
for (it = strs.begin(); it < strs.end(); it++)
ids.push_back(TD::Convert(*it));
}
-inline string gettmpf(const string path, const string infix) {
+inline string gettmpf(const string path, const string infix)
+{
char fn[1024];
strcpy(fn, path.c_str());
strcat(fn, "/");