Menu

#4 Jaccard.score() returns NaN if both strings empty

open
nobody
None
5
2009-04-08
2009-04-08
Anonymous
No

Jaccard.score(s1, s2) returns NaN if both strings have zero tokens. this happens when both strings are empty, or the tokenizer doesn't find any tokens (NGram tokenizer with minNGramSize > size of the string)

It should *probably* return 0.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.