commons-text
commons-text copied to clipboard
Text 158
Fix Jaccard similarity with empty strings: Due to bug, Jaccard similarity for two empty strings returned 0.0, and the distance 1.0, now it returns similarity 1.0, and the distance 0.0
This also includes the fix for TEXT-86 #106. Can you remove that so the only files changed are for the JaccardSimilarity
and its test.
Coverage increased (+0.0008%) to 97.918% when pulling 61becad2c02e699a37a90a8e5369bb2fc9c20c2e on CAPS50:TEXT-158 into 700a066a71bd626df547085e2f66f3f3f0939d26 on apache:master.
Hi @aherbert
it looks like Travis is failing in jdk 12 for a reason that is not related to this change:
install-jdk.sh 2019-01-18 II Couldn't determine a download url for 12-GPL on linux-x64
can you please have a look and advise how to move forward?
I do not know why openjdk12
was in the Travis build matrix. Travis did not like it.
This has just been fixed on master by @garydgregory to use oraclejdk11
and openjdk8
. Any new work pushed to this this PR will use the new matrix from master.
The current travis results pass JDK 8 and 11 so this is not an issue.