CollocatorDB: Provide left/right neighbour raw counts and pmi via API
diff --git a/collocatordb.cc b/collocatordb.cc
index 43e1889..0af6879 100644
--- a/collocatordb.cc
+++ b/collocatordb.cc
@@ -601,10 +601,10 @@
*result = {w2, f2, sum,
pmi, pmi / (-log2(o/total/true_window_size)),
llr, lfmd, md,
- 0,
- 0,
- 0,
- 0,
+ ca_pmi(f1, f2, sumWindow[WINDOW_SIZE], total, 1),
+ ca_pmi(f1, f2, sumWindow[WINDOW_SIZE-1], total, 1),
+ (double)sumWindow[WINDOW_SIZE],
+ (double)sumWindow[WINDOW_SIZE-1],
ca_dice(f1, f2, sum, total, true_window_size),
ld,
bestAF,