Soenneker.Utils.String.CosineSimilarity 2.1.385

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Utils.String.CosineSimilarity --version 2.1.385                
NuGet\Install-Package Soenneker.Utils.String.CosineSimilarity -Version 2.1.385                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Utils.String.CosineSimilarity" Version="2.1.385" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Utils.String.CosineSimilarity --version 2.1.385                
#r "nuget: Soenneker.Utils.String.CosineSimilarity, 2.1.385"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Soenneker.Utils.String.CosineSimilarity as a Cake Addin
#addin nuget:?package=Soenneker.Utils.String.CosineSimilarity&version=2.1.385

// Install Soenneker.Utils.String.CosineSimilarity as a Cake Tool
#tool nuget:?package=Soenneker.Utils.String.CosineSimilarity&version=2.1.385                

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Utils.String.CosineSimilarity

A utility library for comparing strings via Cosine Similarity

Installation

dotnet add package Soenneker.Utils.String.CosineSimularity

Why?

Imagine you have two sentences or documents. Cosine similarity helps you figure out how similar they are by looking at the -words- they share. Here's why it's handy:

Easy to Understand:

Cosine similarity is easy to understand. It's a number between 0 and 1 that represents how similar two documents are. The closer to 1, the more similar they are.

Not Bothered by Length:

Whether a text is long or short doesn't throw off cosine similarity. It cares more about the words and their relationships than the total number of words.

Meaning, Not Just Frequency:

It focuses on the meaning of words, not just how often they show up. So, even if one document has a lot more words than another, they might still be considered similar if they share important terms.

Efficient for Big Tasks:

When you're dealing with lots of documents or a ton of text, cosine similarity is efficient. It doesn't get bogged down by complicated calculations, making it a practical choice for large datasets.

Usage

var text1 = "This is a test";
var text2 = "This is another test";

double result = CosineSimilarityStringUtil.CalculateSimilarityPercentage(text1, text2); // 75
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.556 31 10/3/2024
2.1.555 32 10/3/2024
2.1.554 23 10/3/2024
2.1.553 28 10/3/2024
2.1.552 43 10/2/2024
2.1.551 41 10/2/2024
2.1.550 48 10/2/2024
2.1.549 48 10/2/2024
2.1.548 67 10/1/2024
2.1.547 63 10/1/2024
2.1.546 69 10/1/2024
2.1.545 70 10/1/2024
2.1.544 83 9/29/2024
2.1.543 65 9/29/2024
2.1.542 64 9/29/2024
2.1.541 71 9/29/2024
2.1.540 76 9/27/2024
2.1.539 73 9/27/2024
2.1.538 74 9/27/2024
2.1.537 72 9/27/2024
2.1.536 67 9/27/2024
2.1.535 73 9/27/2024
2.1.534 83 9/27/2024
2.1.533 79 9/26/2024
2.1.532 75 9/26/2024
2.1.531 65 9/26/2024
2.1.530 75 9/26/2024
2.1.529 62 9/26/2024
2.1.528 52 9/26/2024
2.1.527 66 9/26/2024
2.1.526 67 9/26/2024
2.1.525 77 9/23/2024
2.1.524 68 9/23/2024
2.1.523 70 9/23/2024
2.1.522 66 9/23/2024
2.1.521 68 9/23/2024
2.1.520 75 9/23/2024
2.1.519 71 9/23/2024
2.1.518 68 9/23/2024
2.1.517 72 9/18/2024
2.1.516 69 9/18/2024
2.1.515 75 9/18/2024
2.1.514 67 9/18/2024
2.1.513 70 9/18/2024
2.1.512 74 9/17/2024
2.1.511 83 9/17/2024
2.1.510 80 9/17/2024
2.1.509 70 9/17/2024
2.1.508 63 9/17/2024
2.1.507 69 9/17/2024
2.1.506 68 9/17/2024
2.1.505 76 9/17/2024
2.1.504 72 9/16/2024
2.1.503 67 9/16/2024
2.1.502 79 9/16/2024
2.1.501 87 9/12/2024
2.1.500 80 9/12/2024
2.1.499 98 9/11/2024
2.1.498 101 9/11/2024
2.1.497 98 9/11/2024
2.1.496 97 9/11/2024
2.1.495 94 9/11/2024
2.1.494 94 9/10/2024
2.1.493 102 9/10/2024
2.1.492 87 9/10/2024
2.1.491 83 9/10/2024
2.1.490 91 9/10/2024
2.1.489 85 9/9/2024
2.1.487 107 9/9/2024
2.1.485 95 9/9/2024
2.1.484 91 9/9/2024
2.1.483 93 9/7/2024
2.1.482 93 9/7/2024
2.1.481 92 9/6/2024
2.1.479 89 9/6/2024
2.1.478 95 9/6/2024
2.1.477 102 9/5/2024
2.1.476 82 9/5/2024
2.1.475 100 9/5/2024
2.1.474 94 9/5/2024
2.1.473 95 9/5/2024
2.1.472 92 9/5/2024
2.1.471 96 9/5/2024
2.1.470 82 9/4/2024
2.1.469 76 9/4/2024
2.1.468 83 9/3/2024
2.1.467 75 9/3/2024
2.1.466 80 9/3/2024
2.1.465 86 9/3/2024
2.1.464 81 9/3/2024
2.1.463 84 9/3/2024
2.1.462 87 8/29/2024
2.1.461 80 8/29/2024
2.1.460 81 8/29/2024
2.1.459 95 8/26/2024
2.1.458 89 8/26/2024
2.1.457 110 8/21/2024
2.1.456 105 8/21/2024
2.1.455 104 8/21/2024
2.1.454 126 8/21/2024
2.1.453 107 8/20/2024
2.1.452 101 8/20/2024
2.1.451 98 8/20/2024
2.1.450 112 8/20/2024
2.1.449 110 8/20/2024
2.1.448 101 8/20/2024
2.1.447 109 8/19/2024
2.1.446 98 8/15/2024
2.1.445 113 8/15/2024
2.1.444 103 8/15/2024
2.1.443 97 8/14/2024
2.1.442 108 8/14/2024
2.1.441 110 8/13/2024
2.1.440 110 8/13/2024
2.1.439 81 8/7/2024
2.1.438 81 8/7/2024
2.1.437 78 8/7/2024
2.1.436 72 8/6/2024
2.1.435 81 8/1/2024
2.1.434 79 8/1/2024
2.1.432 71 7/25/2024
2.1.431 66 7/25/2024
2.1.430 66 7/25/2024
2.1.429 69 7/25/2024
2.1.428 71 7/25/2024
2.1.427 70 7/25/2024
2.1.426 77 7/25/2024
2.1.425 72 7/24/2024
2.1.423 97 7/20/2024
2.1.422 98 7/20/2024
2.1.421 95 7/20/2024
2.1.420 79 7/14/2024
2.1.419 75 7/14/2024
2.1.418 79 7/14/2024
2.1.417 73 7/14/2024
2.1.416 81 7/10/2024
2.1.415 84 7/10/2024
2.1.414 72 7/10/2024
2.1.413 91 7/10/2024
2.1.411 88 7/10/2024
2.1.410 70 7/10/2024
2.1.409 90 7/10/2024
2.1.408 77 7/10/2024
2.1.407 101 7/10/2024
2.1.405 94 7/10/2024
2.1.404 94 7/9/2024
2.1.402 78 7/9/2024
2.1.401 89 7/9/2024
2.1.400 76 7/9/2024
2.1.399 97 7/9/2024
2.1.398 95 7/9/2024
2.1.397 89 7/9/2024
2.1.396 93 7/9/2024
2.1.395 101 7/9/2024
2.1.394 90 7/8/2024
2.1.393 94 7/8/2024
2.1.392 93 7/8/2024
2.1.391 106 7/8/2024
2.1.390 83 7/8/2024
2.1.389 100 7/8/2024
2.1.388 91 7/7/2024
2.1.387 77 7/7/2024
2.1.386 106 7/3/2024
2.1.385 96 7/3/2024
2.1.384 94 7/3/2024
2.1.383 91 7/3/2024
2.1.382 97 7/3/2024
2.1.381 97 6/27/2024
2.1.380 83 6/27/2024
2.1.379 94 6/22/2024
2.1.378 89 6/22/2024
2.1.377 94 6/22/2024
2.1.376 103 6/16/2024
2.1.375 96 6/15/2024
2.1.374 96 6/15/2024
2.1.373 102 6/15/2024
2.1.372 105 6/15/2024
2.1.371 107 6/15/2024
2.1.370 97 6/15/2024
2.1.369 95 6/15/2024
2.1.368 98 6/15/2024
2.1.367 89 6/14/2024
2.1.366 94 6/14/2024
2.1.365 103 6/4/2024
2.1.364 114 6/4/2024
2.1.363 107 6/2/2024
2.1.362 112 6/1/2024
2.1.361 99 6/1/2024
2.1.360 102 6/1/2024
2.1.359 97 6/1/2024
2.1.358 111 6/1/2024
2.1.357 106 6/1/2024
2.1.356 104 6/1/2024
2.1.355 116 5/31/2024
2.1.354 99 5/31/2024
2.1.353 87 5/31/2024
2.1.352 98 5/31/2024
2.1.351 104 5/29/2024
2.1.350 94 5/29/2024
2.1.349 93 5/28/2024
2.1.348 99 5/28/2024
2.1.347 99 5/28/2024
2.1.346 96 5/28/2024
2.1.345 96 5/28/2024
2.1.344 99 5/27/2024
2.1.343 101 5/27/2024
2.1.342 90 5/27/2024
2.1.341 99 5/26/2024
2.1.340 103 5/26/2024
2.1.339 96 5/26/2024
2.1.338 106 5/26/2024
2.1.337 107 5/26/2024
2.1.336 102 5/26/2024
2.1.335 105 5/25/2024
2.1.334 106 5/25/2024
2.1.333 100 5/25/2024
2.1.332 104 5/25/2024
2.1.331 97 5/25/2024
2.1.330 103 5/25/2024
2.1.329 103 5/23/2024
2.1.328 104 5/23/2024
2.1.327 84 5/23/2024
2.1.326 107 5/23/2024
2.1.325 101 5/23/2024
2.1.324 109 5/23/2024
2.1.323 99 5/22/2024
2.1.322 104 5/22/2024
2.1.321 102 5/22/2024
2.1.320 96 5/22/2024
2.1.319 103 5/18/2024
2.1.318 101 5/18/2024
2.1.317 93 5/18/2024
2.1.316 98 5/18/2024
2.1.315 103 5/17/2024
2.1.314 126 5/17/2024
2.1.313 106 5/17/2024
2.1.312 98 5/16/2024
2.1.311 109 5/16/2024
2.1.310 122 5/15/2024
2.1.309 99 5/15/2024
2.1.308 115 5/15/2024
2.1.307 105 5/13/2024
2.1.306 105 5/13/2024
2.1.305 90 5/13/2024
2.1.304 118 4/30/2024
2.1.303 109 4/30/2024
2.1.302 108 4/30/2024
2.1.301 115 4/30/2024
2.1.300 102 4/29/2024
2.1.299 105 4/29/2024
2.1.298 92 4/29/2024
2.1.297 94 4/29/2024
2.1.296 97 4/28/2024
2.1.295 107 4/28/2024
2.1.294 105 4/28/2024
2.1.293 99 4/28/2024
2.1.292 105 4/28/2024
2.1.291 99 4/28/2024
2.1.290 98 4/28/2024
2.1.289 100 4/27/2024
2.1.288 128 4/27/2024
2.1.287 113 4/20/2024
2.1.286 101 4/20/2024
2.1.285 103 4/19/2024
2.1.284 98 4/19/2024
2.1.283 107 4/19/2024
2.1.282 105 4/19/2024
2.1.281 99 4/18/2024
2.1.280 111 4/13/2024
2.1.279 90 4/13/2024
2.1.278 105 4/13/2024
2.1.277 90 4/12/2024
2.1.276 90 4/12/2024
2.1.275 93 4/12/2024
2.1.274 92 4/12/2024
2.1.273 91 4/12/2024
2.1.272 95 4/12/2024
2.1.271 93 4/12/2024
2.1.270 87 4/12/2024
2.1.269 91 4/11/2024
2.1.268 106 4/10/2024
2.1.267 90 4/10/2024
2.1.266 91 4/10/2024
2.1.265 97 4/10/2024
2.1.264 94 4/10/2024
2.1.263 118 4/3/2024
2.1.262 101 4/3/2024
2.1.261 382 3/30/2024
2.1.260 102 3/29/2024
2.1.259 108 3/29/2024
2.1.258 104 3/25/2024
2.1.257 133 3/25/2024
2.1.256 109 3/25/2024
2.1.255 96 3/25/2024
2.1.254 109 3/25/2024
2.1.253 105 3/21/2024
2.1.252 100 3/21/2024
2.1.251 109 3/21/2024
2.1.250 95 3/20/2024
2.1.249 104 3/20/2024
2.1.248 121 3/19/2024
2.1.247 86 3/19/2024
2.1.246 99 3/19/2024
2.1.245 95 3/19/2024
2.1.244 99 3/19/2024
2.1.243 115 3/19/2024
2.1.242 112 3/18/2024
2.1.241 102 3/16/2024
2.1.240 98 3/16/2024
2.1.239 110 3/16/2024
2.1.238 105 3/15/2024
2.1.237 110 3/13/2024
2.1.236 114 3/13/2024
2.1.235 109 3/13/2024
2.1.234 105 3/13/2024
2.1.233 109 3/13/2024
2.1.232 117 3/13/2024
2.1.231 114 3/13/2024
2.1.230 113 3/13/2024
2.1.229 133 3/12/2024
2.1.228 110 3/12/2024
2.1.227 109 3/12/2024
2.1.226 117 3/12/2024
2.1.225 100 3/11/2024
2.1.224 102 3/11/2024
2.1.223 127 3/11/2024
2.1.222 96 3/11/2024
2.1.221 104 3/11/2024
2.1.220 115 3/10/2024
2.1.219 113 3/10/2024
2.1.218 109 3/10/2024
2.1.217 104 3/10/2024
2.1.216 125 3/9/2024
2.1.215 114 3/8/2024
2.1.214 115 3/8/2024
2.1.213 119 3/8/2024
2.1.212 104 3/8/2024
2.1.211 107 3/8/2024
2.1.210 100 3/8/2024
2.1.209 114 3/6/2024
2.1.208 112 3/6/2024
2.1.207 104 3/6/2024
2.1.206 108 3/4/2024
2.1.205 95 3/4/2024
2.1.204 116 3/4/2024
2.1.203 117 3/4/2024
2.1.202 95 3/4/2024
2.1.201 105 3/3/2024
2.1.200 118 3/3/2024
2.1.199 108 3/3/2024
2.1.198 113 3/3/2024
2.1.197 106 3/2/2024
2.1.196 104 3/2/2024
2.1.195 103 2/29/2024
2.1.194 99 2/29/2024
2.1.193 96 2/29/2024
2.1.192 106 2/29/2024
2.1.191 104 2/29/2024
2.1.190 91 2/29/2024
2.1.189 115 2/29/2024
2.1.188 110 2/29/2024
2.1.187 96 2/27/2024
2.1.186 96 2/26/2024
2.1.185 81 2/26/2024
2.1.184 99 2/25/2024
2.1.183 91 2/25/2024
2.1.182 98 2/25/2024
2.1.181 109 2/25/2024
2.1.180 106 2/25/2024
2.1.179 96 2/24/2024
2.1.178 95 2/23/2024
2.1.177 94 2/23/2024
2.1.176 97 2/22/2024
2.1.175 109 2/22/2024
2.1.174 108 2/22/2024
2.1.173 87 2/22/2024
2.1.172 95 2/22/2024
2.1.171 102 2/22/2024
2.1.170 111 2/21/2024
2.1.169 111 2/21/2024
2.1.168 92 2/21/2024
2.1.167 105 2/21/2024
2.1.166 129 2/21/2024
2.1.165 107 2/21/2024
2.1.164 94 2/21/2024
2.1.163 120 2/20/2024
2.1.162 95 2/20/2024
2.1.161 105 2/20/2024
2.1.160 103 2/20/2024
2.1.159 116 2/20/2024
2.1.158 97 2/20/2024
2.1.157 102 2/20/2024
2.1.156 92 2/20/2024
2.1.155 108 2/19/2024
2.1.154 86 2/19/2024
2.1.153 119 2/19/2024
2.1.152 84 2/19/2024
2.1.151 110 2/17/2024
2.1.150 121 2/17/2024
2.1.149 97 2/17/2024
2.1.148 110 2/17/2024
2.1.147 116 2/17/2024
2.1.146 99 2/16/2024
2.1.145 110 2/16/2024
2.1.144 89 2/16/2024
2.1.143 106 2/16/2024
2.1.142 95 2/16/2024
2.1.141 105 2/16/2024
2.1.140 110 2/16/2024
2.1.139 103 2/14/2024
2.1.138 108 2/14/2024
2.1.137 107 2/14/2024
2.1.136 112 2/14/2024
2.1.135 93 2/13/2024
2.1.134 106 2/13/2024
2.1.133 91 2/13/2024
2.1.132 111 2/13/2024
2.1.131 112 2/13/2024
2.1.130 107 2/13/2024
2.1.129 116 2/12/2024
2.1.128 103 2/12/2024
2.1.127 102 2/12/2024
2.1.126 107 2/12/2024
2.1.125 103 2/11/2024
2.1.124 105 2/11/2024
2.1.123 124 2/11/2024
2.1.122 115 2/11/2024
2.1.121 106 2/11/2024
2.1.120 98 2/11/2024
2.1.119 109 2/10/2024
2.1.118 120 2/10/2024
2.1.117 102 2/10/2024
2.1.116 110 2/10/2024
2.1.115 116 2/10/2024
2.1.114 107 2/9/2024
2.1.113 103 2/9/2024
2.1.112 104 2/9/2024
2.1.111 108 2/9/2024
2.1.110 112 2/9/2024
2.1.109 108 2/9/2024
2.1.108 109 2/9/2024
2.1.107 110 2/8/2024
2.1.106 106 2/8/2024
2.1.105 108 2/8/2024
2.1.104 109 2/8/2024
2.1.103 102 2/8/2024
2.1.102 107 2/7/2024
2.1.101 113 2/7/2024
2.1.100 113 2/7/2024
2.1.99 98 2/7/2024
2.1.98 105 2/7/2024
2.1.97 103 2/7/2024
2.1.96 104 2/7/2024
2.1.95 119 2/7/2024
2.1.94 106 2/6/2024
2.1.93 97 2/6/2024
2.1.92 100 2/6/2024
2.1.91 104 2/5/2024
2.1.90 106 2/5/2024
2.1.89 112 2/4/2024
2.1.88 97 2/4/2024
2.1.87 109 2/3/2024
2.1.86 104 2/3/2024
2.1.85 106 1/31/2024
2.1.84 96 1/31/2024
2.1.83 96 1/31/2024
2.1.82 87 1/31/2024
2.1.81 111 1/30/2024
2.1.80 103 1/30/2024
2.1.79 98 1/30/2024
2.1.78 98 1/29/2024
2.1.77 105 1/29/2024
2.1.76 97 1/29/2024
2.1.75 103 1/29/2024
2.1.74 92 1/29/2024
2.1.73 100 1/29/2024
2.1.72 99 1/28/2024
2.1.71 117 1/28/2024
2.1.70 95 1/28/2024
2.1.69 102 1/28/2024
2.1.68 101 1/28/2024
2.1.67 97 1/28/2024
2.1.66 99 1/27/2024
2.1.65 100 1/27/2024
2.1.64 96 1/27/2024
2.1.63 114 1/27/2024
2.1.62 112 1/27/2024
2.1.61 97 1/27/2024
2.1.60 87 1/27/2024
2.1.59 104 1/27/2024
2.1.58 105 1/26/2024
2.1.57 94 1/26/2024
2.1.56 95 1/26/2024
2.1.55 98 1/26/2024
2.1.54 105 1/26/2024
2.1.53 116 1/26/2024
2.1.52 98 1/25/2024
2.1.51 91 1/25/2024
2.1.50 108 1/25/2024
2.1.49 107 1/25/2024
2.1.48 98 1/25/2024
2.1.47 106 1/25/2024
2.1.46 108 1/19/2024
2.1.45 107 1/19/2024
2.1.44 115 1/19/2024
2.1.43 126 1/16/2024
2.1.42 117 1/16/2024
2.1.41 95 1/15/2024
2.1.40 115 1/15/2024
2.1.39 110 1/15/2024
2.1.38 113 1/15/2024
2.1.37 112 1/15/2024
2.1.36 109 1/15/2024
2.1.35 114 1/15/2024
2.1.34 114 1/14/2024
2.1.33 106 1/14/2024
2.1.32 107 1/13/2024
2.1.31 105 1/13/2024
2.1.30 106 1/13/2024
2.1.29 120 1/13/2024
2.1.28 113 1/12/2024
2.1.27 111 1/12/2024
2.1.26 109 1/12/2024
2.1.25 107 1/11/2024
2.1.24 115 1/11/2024
2.1.23 122 1/11/2024
2.1.22 119 1/9/2024
2.1.21 134 1/8/2024
2.1.20 112 1/8/2024
2.1.19 132 1/8/2024
2.1.18 143 1/7/2024
2.1.17 125 1/6/2024
2.1.16 128 1/5/2024
2.1.15 134 1/5/2024
2.1.14 129 1/5/2024
2.1.13 138 1/5/2024
2.1.12 127 1/5/2024
2.1.11 113 1/1/2024
2.1.10 96 1/1/2024
2.1.9 108 1/1/2024
2.1.8 98 1/1/2024
2.1.7 101 1/1/2024
2.1.6 135 12/31/2023
2.1.5 112 12/31/2023
2.1.4 128 12/31/2023
2.1.3 117 12/31/2023
2.1.2 97 12/31/2023
2.1.1 105 12/31/2023