File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments