summaryrefslogtreecommitdiff
path: root/utils/b64featvector.h
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2014-11-24 00:16:18 -0500
committerChris Dyer <redpony@gmail.com>2014-11-24 00:16:18 -0500
commit326ea26db4680219f801eeb6622dd2ee378e974b (patch)
treeb60b1662b1976d27adc222764666786b04e19ad5 /utils/b64featvector.h
parent25af985d0b31732f5dd6cea9ab001495a1aabb01 (diff)
parent2931396900c89eb19a50407955574960c364d0ee (diff)
Merge pull request #59 from kho/mrmira
Mr.MIRA compatibility
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_