diff options
author | Patrick Simianer <simianer@cl.uni-heidelberg.de> | 2012-05-14 17:00:45 +0200 |
---|---|---|
committer | Patrick Simianer <simianer@cl.uni-heidelberg.de> | 2012-05-14 17:00:45 +0200 |
commit | fb42639b433d2fc0c68f300666be1192dc3b4f59 (patch) | |
tree | bbce7fffa8c28ade217cf331e357ba65e64235b3 /creg/json_feature_map_lexer.h | |
parent | 670a8f984fc6d8342180c59ae9e96b0b76f34d3d (diff) | |
parent | 0f1e696690b18259acd79c3469d00a72aca00161 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'creg/json_feature_map_lexer.h')
-rw-r--r-- | creg/json_feature_map_lexer.h | 15 |
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 + |