CollocatorDB: Introduce FREQUENCY_THRESHOLD for PMI
diff --git a/collocatordb.cc b/collocatordb.cc
index 4a37563..5dcbfc0 100644
--- a/collocatordb.cc
+++ b/collocatordb.cc
@@ -120,7 +120,10 @@
       c1 = f2,
       e = r1 * c1 / total,
       o = f12;
-    return log2(o/e);
+    if(f12 < FREQUENCY_THRESHOLD)
+      return -1.0;
+    else
+			return log2(o/e);
   }
 
   // Bouma, Gerlof (2009): <a href="https://svn.spraakdata.gu.se/repos/gerlof/pub/www/Docs/npmi-pfd.pdf">