summaryrefslogtreecommitdiff
path: root/creg
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-05-17 23:48:23 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2012-05-17 23:48:23 -0400
commitff6cc0d60f32c11fca9ffd81af93bec334728f31 (patch)
tree118d570bfbbb989e156f5d45e1ee7e7c67f5a065 /creg
parent3d44c4e9c80472c4e3f39bfbf730c192328c839c (diff)
jamfiles for creg
Diffstat (limited to 'creg')
-rw-r--r--creg/Jamfile6
-rw-r--r--creg/creg.cc2
2 files changed, 7 insertions, 1 deletions
diff --git a/creg/Jamfile b/creg/Jamfile
new file mode 100644
index 00000000..cfed2388
--- /dev/null
+++ b/creg/Jamfile
@@ -0,0 +1,6 @@
+import lex ;
+
+exe creg : creg.cc json_feature_map_lexer.ll ..//utils ../training//liblbfgs ..//boost_program_options : <include>../training <include>. : <library>..//z ;
+
+alias programs : creg ;
+
diff --git a/creg/creg.cc b/creg/creg.cc
index 005ec9ac..b145ac49 100644
--- a/creg/creg.cc
+++ b/creg/creg.cc
@@ -65,7 +65,7 @@ void ReaderCB(const string& id, const SparseVector<float>& fmap, void* extra) {
if (rh.lc % 40000 == 0) { cerr << " [" << rh.lc << "]\n"; rh.flag = false; }
const unordered_map<string, unsigned>::iterator it = rh.id2ind.find(id);
if (it == rh.id2ind.end()) {
- cerr << "Unlabeled example in line " << rh.lc << endl;
+ cerr << "Unlabeled example in line " << rh.lc << " (key=" << id << ')' << endl;
abort();
}
(*rh.xy_pairs)[it->second - 1].x = fmap;