commit | 9ff3c998fa8df5425beab69f14c85faff887ee83 | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Mon Feb 04 12:32:54 2019 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Mon Feb 04 12:32:54 2019 +0100 |
tree | 972c8132bc3df5db154922b120f5539a4756ef0d | |
parent | 4784fae491c864b0fec93ea470aa8d48fb3fb38b [diff] |
derekovecs: fix word-id for merged vocab in classic collocation analysis
diff --git a/w2v-server.pl b/w2v-server.pl index 2605db5..7702e0a 100755 --- a/w2v-server.pl +++ b/w2v-server.pl
@@ -113,6 +113,9 @@ sub getClassicCollocatorsCached { my ($c, $word) = @_; + if($word > $mergedEnd) { + $word-=$mergedEnd; + } if(!$cccache{$word}) { $cccache{$word} = getClassicCollocators($word); } else {