w2v-server: make output activation threshold variable
diff --git a/w2v-server.pl b/w2v-server.pl
index bc4a2bc..67bcba4 100755
--- a/w2v-server.pl
+++ b/w2v-server.pl
@@ -373,6 +373,7 @@
   collocator *best;
   float *target_sums;
   float *window_sums;
+  float threshold;
 } knnpars;
 
 typedef struct {
@@ -686,7 +687,7 @@
   memset(target_sums, 0, pars->cutoff * sizeof(float));
 	best = malloc((N>200?N:200) * sizeof(collocator));
   memset(best, 0, (N>200?N:200) * sizeof(collocator));
-  worstbest = MIN_RESP;
+  worstbest = pars->threshold;
 
   for (b = 0; b < pars->cutoff; b++)
 			target_sums[b]=0;
@@ -1068,6 +1069,7 @@
       pars[a + para_threads].window_sums = window_sums;
       pars[a + para_threads].wl = wl;
       pars[a + para_threads].N = N;
+      pars[a + para_threads].threshold = MIN_RESP;
       pars[a + para_threads].from = a;
       pars[a + para_threads].upto = a+1;
       pthread_create(&pt[a + para_threads], NULL, getCollocators, (void *) &pars[a + para_threads]);