commit | cddc8488ba9641bdc12101e2e9065fb89848eb83 | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Wed Dec 04 08:57:33 2019 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Wed Dec 04 08:57:33 2019 +0100 |
tree | 43deabcb4194d33e36bcc3193f27f5599c9d291c | |
parent | cb43e49cac12f2afd50855483ee4346392975fad [diff] [blame] |
derekovecs: start empty if no word was given
diff --git a/w2v-server.pl b/w2v-server.pl index ae53f87..4aa687c 100755 --- a/w2v-server.pl +++ b/w2v-server.pl
@@ -273,8 +273,7 @@ my $res; my @lists; my @collocations; - $word="idea" if(!defined($word)); - if(defined($word) && $word !~ /^\s*$/) { + if(defined($word) && $word !~ /^\s*$/) { $c->inactivity_timeout(300); $word =~ s/\s+/ /g; if($opt_m && $word !~ /\|/) {