commit | 63872180823f347b4572a68061cdb52674aa274c | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Mon Mar 12 09:44:49 2018 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Mon Mar 12 09:44:49 2018 +0100 |
tree | d095133aee1c2ce38774d4c3ff95e2bac69b8b9e | |
parent | 969adfa69b1b5229f27a8abf3ab2e186ea67af0c [diff] |
w2v-server: skip target word in total activation summation
diff --git a/w2v-server.pl b/w2v-server.pl index 3e3a683..648f4b0 100755 --- a/w2v-server.pl +++ b/w2v-server.pl
@@ -852,6 +852,7 @@ fflush(stdout); for (a = 0; a < syn_threads; a++) pthread_join(pt[a+para_threads], (void *) &syn_nbs[a]); for (a = 0; a <= syn_threads; a++) { + if(a == window) continue; total_activation += window_sums[a]; printf("window pos: %d, sum: %f\n", a, window_sums[a]); }