summaryrefslogtreecommitdiff
path: root/utils/b64featvector.h
diff options
context:
space:
mode:
authorWu, Ke <wuke@cs.umd.edu>2014-10-12 16:30:02 -0400
committerWu, Ke <wuke@cs.umd.edu>2014-10-12 16:30:02 -0400
commit8c0e4a5c1f168a419b3a236a94815c97164bddbc (patch)
tree177b7cd332482f779f04945fea8325a00e9cfa54 /utils/b64featvector.h
parentd88186af251ecae60974b20395ce75807bfdda35 (diff)
Cherry picked Mr.MIRA compatibility mode code
Diffstat (limited to 'utils/b64featvector.h')
-rw-r--r--utils/b64featvector.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/b64featvector.h b/utils/b64featvector.h
new file mode 100644
index 00000000..6ac04d44
--- /dev/null
+++ b/utils/b64featvector.h
@@ -0,0 +1,12 @@
+#ifndef _B64FEATVECTOR_H_
+#define _B64FEATVECTOR_H_
+
+#include <string>
+
+#include "sparse_vector.h"
+#include "weights.h"
+
+std::string EncodeFeatureVector(const SparseVector<weight_t> &);
+void DecodeFeatureVector(const std::string &, SparseVector<weight_t> *);
+
+#endif // _B64FEATVECTOR_H_