diff options
author | Patrick Simianer <p@simianer.de> | 2011-10-27 15:08:08 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2011-10-27 15:08:08 +0200 |
commit | aaeb2dec23ff9257a9fc86ba49ee8d97f18138cd (patch) | |
tree | 7e4b9a2a646721b54e945fa9ec38ab4de5f4f317 /dtrain/dtrain.h | |
parent | a5a92ebe23c5819ed104313426012011e32539da (diff) |
fix
Diffstat (limited to 'dtrain/dtrain.h')
-rw-r--r-- | dtrain/dtrain.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dtrain/dtrain.h b/dtrain/dtrain.h index 7c1509e4..f4d32ecb 100644 --- a/dtrain/dtrain.h +++ b/dtrain/dtrain.h @@ -3,6 +3,7 @@ #include <iomanip> +#include <climits> #include <string.h> #include <boost/algorithm/string.hpp> @@ -58,5 +59,13 @@ inline ostream& _p2(ostream& out) { return out << setprecision(2); } inline ostream& _p5(ostream& out) { return out << setprecision(5); } inline ostream& _p9(ostream& out) { return out << setprecision(9); } +inline void printWordIDVec(vector<WordID>& v) +{ + for (unsigned i = 0; i < v.size(); i++) { + cerr << TD::Convert(v[i]); + if (i < v.size()-1) cerr << " "; + } +} + #endif |