This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fall back on stop-words comparison for similarity when nothing else i…
…s available. A divide-by-zero condition was generating a NaN value for similarity for strings that contain only stop-words. When that condition would be met, this will instead repeat the comparison without ignoring stop-words, then finally just return 0.0 if there are still no tokens to compare.
- Loading branch information
1 parent
35e0e53
commit 276f310
Showing
2 changed files
with
161 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters