summaryrefslogtreecommitdiff
path: root/creg/json_feature_map_lexer.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-05-13 17:09:34 -0700
committerChris Dyer <cdyer@cs.cmu.edu>2012-05-13 17:09:34 -0700
commita937d645257f0949e138f3548fd0a2b65ea8aa11 (patch)
treead46b2f3c24ad8f3fab3cd8b7971e646552e1a17 /creg/json_feature_map_lexer.h
parent69b0bf8d618338c82fda17878defff77fb35a69f (diff)
put creg in its own top-level folder
Diffstat (limited to 'creg/json_feature_map_lexer.h')
-rw-r--r--creg/json_feature_map_lexer.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/creg/json_feature_map_lexer.h b/creg/json_feature_map_lexer.h
new file mode 100644
index 00000000..3324aa29
--- /dev/null
+++ b/creg/json_feature_map_lexer.h
@@ -0,0 +1,15 @@
+#ifndef _RULE_LEXER_H_
+#define _RULE_LEXER_H_
+
+#include <iostream>
+#include <string>
+
+#include "sparse_vector.h"
+
+struct JSONFeatureMapLexer {
+ typedef void (*FeatureMapCallback)(const std::string& id, const SparseVector<float>& fmap, void* extra);
+ static void ReadRules(std::istream* in, FeatureMapCallback func, void* extra);
+};
+
+#endif
+