commit | d897d5dc55d38e258c1fc3731c4d4c0ebfb336e0 | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Fri Aug 02 15:09:07 2019 +0200 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Fri Aug 02 15:09:07 2019 +0200 |
tree | cbc62c3d07b2d8ceb3890f9e858ce9e908b40adc | |
parent | 3c0fab155e026a2f545943b0d5515d13f359a131 [diff] |
w2v-server: hack for Warsaw students: default to idea as query keywoard
diff --git a/w2v-server.pl b/w2v-server.pl index 67bcba4..7295d4b 100755 --- a/w2v-server.pl +++ b/w2v-server.pl
@@ -247,7 +247,8 @@ my $res; my @lists; my @collocations; - if(defined($word) && $word !~ /^\s*$/) { + $word="idea" if(!defined($word)); + if(defined($word) && $word !~ /^\s*$/) { $c->inactivity_timeout(300); $word =~ s/\s+/ /g; if($opt_m && $word !~ /\|/) {