Skip to content

Commit cf07b35

Browse files
authored
Update README to rename KShingling to Cosine
1 parent 3d9ddb8 commit cf07b35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,19 +362,19 @@ public class Program
362362
string s2 = "My other string...";
363363

364364
// Let's work with sequences of 2 characters...
365-
var ks = new KShingling(2);
365+
var cosine = new Cosine(2);
366366

367367
// For cosine similarity I need the profile of strings
368-
StringProfile profile1 = ks.GetProfile(s1);
369-
StringProfile profile2 = ks.GetProfile(s2);
368+
StringProfile profile1 = cosine.GetProfile(s1);
369+
StringProfile profile2 = cosine.GetProfile(s2);
370370

371371
// Prints 0.516185
372372
Console.WriteLine(profile1.CosineSimilarity(profile2));
373373
}
374374
}
375375
```
376376

377-
Pay attention, this only works if the same KShingling object is used to parse all input strings!
377+
Pay attention, this only works if the same Cosine object is used to parse all input strings!
378378

379379

380380
### Q-Gram

0 commit comments

Comments
 (0)