Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,11 @@ public class MyApp {

public static void main(String[] args) {

// produces 0.583333
// distance: approximately 0.583333
NGram twogram = new NGram(2);
System.out.println(twogram.distance("ABCD", "ABTUIO"));

// produces 0.97222
// distance: approximately 0.027778
String s1 = "Adobe CreativeSuite 5 Master Collection from cheap 4zp";
String s2 = "Adobe CreativeSuite 5 Master Collection from cheap d1x";
NGram ngram = new NGram(4);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ public static void main(String[] args) {

// NGram
// =====
// produces 0.416666
System.out.println("\nNGram");
// distance: approximately 0.583333
NGram twogram = new NGram(2);
System.out.println(twogram.distance("ABCD", "ABTUIO"));

// produces 0.97222
// distance: approximately 0.027778
String s1 = "Adobe CreativeSuite 5 Master Collection from cheap 4zp";
String s2 = "Adobe CreativeSuite 5 Master Collection from cheap d1x";
NGram ngram = new NGram(4);
Expand Down