Fix json output for right and left neighbours
Change-Id: I001aaffc4f0bcd9c8a2e95ffeaa7985b8e9d88c6
diff --git a/collocatordb.h b/collocatordb.h
index f249791..a033dcb 100644
--- a/collocatordb.h
+++ b/collocatordb.h
@@ -32,6 +32,27 @@
int window;
int af_window;
};
+namespace rocksdb {
+ class Collocator {
+ public:
+ uint32_t w2;
+ uint64_t f2;
+ uint64_t raw;
+ double pmi;
+ double npmi;
+ double llr;
+ double lfmd;
+ double md;
+ uint64_t left_raw;
+ uint64_t right_raw;
+ double left_pmi;
+ double right_pmi;
+ double dice;
+ double logdice;
+ double ldaf;
+ int window;
+ int af_window;
+ };
class CollocatorIterator : public Iterator {
public: