commit | b6514dc776f6a84b60d0e1f4e6f9e12401bee015 | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Wed Jun 26 11:47:56 2019 +0200 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Wed Jun 26 11:47:56 2019 +0200 |
tree | f205f12dc47442ade760a1df00b49492b9b3f486 | |
parent | 1233eda43bddaf49dae0bcfa00c3a8c4a7927a19 [diff] [blame] |
derekovecs: handle the case when there is no 2nd model for comparison
diff --git a/w2v-server.pl b/w2v-server.pl index 2ec8c40..a8cb8d0 100755 --- a/w2v-server.pl +++ b/w2v-server.pl
@@ -845,6 +845,9 @@ knn *nbs = NULL; int N = 1000; + if(merged_end == 0) + result = "[]"; + if(result != NULL) return result;