commit | 0a664c16c525f73b03cb4366d7ccfba2f54a2bbe | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Fri Mar 18 13:18:22 2016 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Fri Mar 18 13:18:22 2016 +0100 |
tree | d43aca7dd94f87abdba3a1d0812d40d3dd4c81c2 | |
parent | 57c0df1419b5e9a0c1a5c81b25666b435f8f4896 [diff] |
wang2vec: fix order of collocators
diff --git a/word2vecExt.c b/word2vecExt.c index 1881e12..871558c 100644 --- a/word2vecExt.c +++ b/word2vecExt.c
@@ -1614,7 +1614,7 @@ target_sums[b]=0; maxmax_f = -1; maxmax_target = 0; - for (a = 0; a < window * 2 + 1; a++) { + for (a = window * 2 + 1; a >=0; a--) { if (a != window) { max_f = -1; window_offset = a * layer1_size;