summaryrefslogtreecommitdiff
path: root/creg/json_feature_map_lexer.h
blob: 3324aa294314c0a621ff181d20fe0c3fcdc47d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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